摘要:
下述代码在VS2010上的cpp文件可通过,在杭电OJ上的G++编译项上可通过。 1 #include 2 #include 3 struct student{ 4 student *p; 5 int a; 6 student() 7 { 8 a=100; 9 p=NULL;10 }11 };12 int main()13 {14 student *root=new student();15 printf("%d\n",root->a);16 printf("%s\n",root->p);17 ... 阅读全文
posted @ 2013-08-31 21:21
holyprince
阅读(292)
评论(0)
推荐(0)

浙公网安备 33010602011771号