代码很简单:
#include <iostream>
using namespace std;
int main()
{
cout << "请输入林北の名字:";
char s[10];
cin >> s;
cout << s << endl;
return 0;
}
当然我是因为别的代码里出现了这个现象才写了这个测试用,并不是只有这样写才会出错。然后上运行结果:
代码很简单:
#include <iostream>
using namespace std;
int main()
{
cout << "请输入林北の名字:";
char s[10];
cin >> s;
cout << s << endl;
return 0;
}
当然我是因为别的代码里出现了这个现象才写了这个测试用,并不是只有这样写才会出错。然后上运行结果: