#include <iostream>
using namespace std;
int main()
{
char s[256];
cout<<"输入一行的字符:"<<endl;
cin.getline(s,8);
cout<<s<<endl;
system("PAUSE");
return 0;
}
getline()
最新推荐文章于 2025-05-18 08:30:00 发布
#include <iostream>
using namespace std;
int main()
{
char s[256];
cout<<"输入一行的字符:"<<endl;
cin.getline(s,8);
cout<<s<<endl;
system("PAUSE");
return 0;
}