#c++中string类型使用cin输入的中文字符无法使用cout输出;输出结果为空白;调试中显示中文字符并没有存入string变量中。
```c++
#include
#include
using namespace std;
int main()
{
string name;
cin >> name;

cout << name << endl;
system("pause");
return 0;
}
```
改成 cout<<name.c_str()<<endl;