I useto read strings from cin stream.Code:vector<string> Names; copy(istream_iterator<string>(cin), istream_iterator<string>(),back_inserter(Names)); ....other code...
The problem is I don't know how to terminate the input stream and run the code below it. I tried Enter,"Ctrl+D"...but the screen remain the status of receiving the input...




Reply With Quote