![]() |
#2
rjsp2011-11-26 08:25
|
int *s=new int[5];
int *w=s;
for(int a=0;a!=5;a++,++w)为啥要有指针w 直接用s赋值为啥 输出是乱数 for(int a=0;a!=5;a++,s++)
*w=4; *s=4; 这样就输出的不对
for(int a=0;a!=5;a++,++s)
cout<<*s;