读取一行字符串getline

2019-07-24  本文已影响0人  卫九
#include<iostream>
#include<string>
using namespace std;
int main(){
  string s;
  getline(cin,s);
  cout<<s<<endl;
  return 0;
}
上一篇 下一篇

猜你喜欢

热点阅读