Reputation: 24705
What is the input key for cin.eof()
as stated in this code
while (1) {
int i = cin.get();
if (cin.eof())
break;
...
}
In linux, I know it is CTRL+D, but that key combination doesn't work in Visual studio.
Upvotes: 1
Views: 1130
Reputation: 490108
F6 or ctrl+z are the usual ones (with F6 usually preferred -- ctrl+z only works dependably if preceded and followed by Enter).
Upvotes: 2