0
点赞
收藏
分享

微信扫一扫

测试字符串输入输出问题练习(可以输出空格的2个函数)


#include
#include
using namespace std;
//测试字符串输入输出问题练习
int main(){
string str;
getline(cin, str);
cout << str << endl;

char ch[25];
cin.getline(ch, 25);
cout << ch << endl;

cout << endl;
system("pause");
return 0;

}


举报

相关推荐

0 条评论