热门

最新

红包

立Flag

投票

同城

我的

发布
m0_47379018
Rareferry
5 年前
truem0_47379018

小白求解
下面p=s的两种位置怎么区别?
①#include<iostream>
using namespace std;
#include<string.h>
main()
{
char *p,s[80];
p=s;
do{
gets(s);
while(*p)
cout<<*p++;
cout<<endl;
}while(strcmp(s,"end"));
}
②#include<iostream>
using namespace std;
#include<string.h>
main()
{
char *p,s[80];
do{
p=s;
gets(s);
while(*p)
cout<<*p++;
cout<<endl;
}while(strcmp(s,"end"));
}

CSDN App 扫码分享
分享
1
5
打赏
  • 复制链接
  • 举报
下一条:
哈哈
立即登录