![]() |
#2
Cmoniker2010-05-09 22:54
|
#include<iostream>
#include<string>
using namespace std;
int main()
{
string b;
getline(cin,b);
cout<<b<<endl;
return 0;
}
简单测试一下getline函数 为什么我输入了之后 按两下回车才输出
比如:
welcome to here!
//中间多个空行 就是说多数了一下回车 为什么呀?
welcome to here!