[求助]怎么退出这个循环?
大家帮我看看这个程序怎么退出循环,谢谢了
我在VC6.0里面退不出来,按Ctrl+Z也不好使,怎么回事啊??
#include<iostream>
#include<string>
using namespace std;
int main()
{
string s;
while(getline(cin,s))
cout<<s<<endl;
return 0;
}

Everything is gonna be okay!