3、>usingnamespacestd;intmain(){inti,a[5]={0,1,2,3,4};for(i=0;i<=5;i++)cout<#includeusingnamespacestd;intmain(){inti,a[5]={0,1,2,3,4};for(i=0;i<=5;i++)cout<usi
4、ngnamespacestd;intmain(){charrstr[10]="abcdefgh",dstr[10];inti;for(i=0;rstr[i]!=' ';i++)//循环条件可以写成rstr[i]!=0;或rstrdstr[i]=rstr[i];cout<<"输出字符串dstr:"<usingnamespacestd
5、;intmain(){charrstr[10]="abcdefgh",dstr[10];inti;for(i=0;rstr[i]!=' ';i++)//循环条件可以写成rstr[i]!=0;或rstrdstr[i]=rstr[i];dstr[i]=' ';cout<<"输出字符串dstr:"<