- 博客(3)
- 收藏
- 关注
原创 C++中关于 getline() 读取缓冲区中回车,以及cin 结束符的问题
废话不多说直接上代码#include <bits/stdc++.h>using namespace std;int main(){ string str1; int x;cin>>x; while(x--){ getline(cin,str1); cout<<str1<<"\n";...
2018-09-11 18:08:42
17562
9
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人