| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
大家帮忙看看 !全局变量int n在执行这个函数之后,值改变了,是怎么回事 ?我没该n的值啊 !
void segment::construct (int left, int right)
{
if (left < right)
{
l = left;
r = right;
col = nocolor;
if (left + 1 < right)
{
lchild = &tree[Len ++];
rchild = &tree[Len ++];
int mid = (left + right) / 2;
lchild->construct (left, mid);
rchild->construct (mid, right);
}
else
{
lchild = rchild = NULL;
}
}
}
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator