| ||||||||||
| 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 | |||||||||
结果为什么不同?高手进下面代码1 2为什么输出结果不同呢?
实在是搞不懂。
1
#include<stdio.h>
struct node
{
node *lc,*rc;
int head,tail;
};
node *w;
int main()
{
w=new node;
printf("%d\n",w->lc);
scanf("\n");
return 0;
}
2
#include<stdio.h>
struct node
{
int head,tail;
node *lc,*rc;
};
node *w;
int main()
{
w=new node;
printf("%d\n",w->lc);
scanf("\n");
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator