![]() |
#2
blueskiner2013-10-03 16:03
|

#include <iostream>
#include <string>
using namespace std;
int main( )
{
string s;
while(getline(cin,s))
cout<<s<<endl;
return 0;
}
#include <string>
using namespace std;
int main( )
{
string s;
while(getline(cin,s))
cout<<s<<endl;
return 0;
}
运行后结果如下:
1111
222
1111
33333
222
4444
33333
结果为什么不是:
1111
1111
222
222
33333
33333
请高人指点!