64,683
社区成员
发帖
与我相关
我的任务
分享
#include<iostream.h>
int main()
{
int temp[50];
for(int k=0;k<50;k++)
{
temp[k]=k;
cout<<temp[k]<<ends;
}
cout<<*(temp+49)<<endl;
(temp+49)=NULL;
for(int k=0;k<49;k++)
{
cout<<temp[k]<<ends;
}
}
int main()
{
int temp[50];
for(int k=0;k<50;k++)
{
temp[k]=k;
cout<<temp[k]<<ends;
}
cout<<*(temp+49)<<endl;
*(temp+49)=NULL;//就这里改了下
for(int k=0;k<49;k++)
{
cout<<temp[k]<<ends;
}
}