- 博客(1)
- 收藏
- 关注
原创 C++ 中 cin 函数输入字符串空格后不显示
Note1 在C++中,使用cin函数进行字符串的输入时,需要录入的str后面不能包含空格。 #include <iostream> ; #include <string> ; using namespace std ; int main() { string str ; cin >> str ; cout << str << endl; systme("pause"); return 0; } .
2020-10-31 20:27:42
1079
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人