ccfriend
October 7th, 2005, 04:38 PM
Hi
I have the code
#include<iostream>
using namespace std;
int main()
{
string buf;
while( cin >> buf )
{
cout << buf;
//do some process in buf
}
//end the loop someway
cout << "The result";
return 0;
}
With what keyboard shortcut I can end the loop in order to proceed in my program ( I am not interested in signal solution or
if ( buf == "END" )
break;
Thanks
I have the code
#include<iostream>
using namespace std;
int main()
{
string buf;
while( cin >> buf )
{
cout << buf;
//do some process in buf
}
//end the loop someway
cout << "The result";
return 0;
}
With what keyboard shortcut I can end the loop in order to proceed in my program ( I am not interested in signal solution or
if ( buf == "END" )
break;
Thanks