64,670
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
int main()
{
char file1[128];
char file2[128];
cout <<"请输入字符串:" <<endl;
cin>>(file1);
getchar();
cout <<"你输入的字符串为:" <<file1 <<endl;
getchar();
return 0;
}
#include <iostream>
using namespace std;
int main()
{
char file1[128];
char file2[128];
cout <<"请输入字符串:" <<endl;
gets(file1);
cout <<"你输入的字符串为:" <<puts(file1) <<endl;
char a;
cin>>a;
return 0;
}