How to manually input an EOT ?

Hi all,

I am writing a function to be used from the command line. So I have a loop on cin. What condition shall I use to break the loop ? Or what escapre character shall I use to mimic a EOF ?
while( cin>>vars ){

I think that EOF is
<C-D> for *nix
<C-Z> for DOS
Thanks ne555,
I am on Linux. I found already Ctrl-D that works in the console, but not in eclipse console in run/debug mode. Thought, I checked the keys strokes definitions, and ctrl-D is assigned to EOF in run/debug mode. So, it should work. Possibly an Eclipse bug ?
Topic archived. No new replies allowed.