• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 319
  • Last Modified:

End Of File

Hello !
At my school I have to test my programs
that ask an input from the keyboard
by entering <ctrl-d> (an end of file) in Unix,
But at home I have Windows and I'm using MS VisualC++ 6,
What do I have to enter in the console, to simulate an end of file ?
  • 2
1 Solution
But Why do you want the user to enter the EOF character?
matthew016Author Commented:
Thanks !
When i ask the user to enter a number with the function gets(input);
why when i enter 123 ^Z I have to push to times on Return
(in Unix when I push ^D gets() dont ask me to enter something after ^D)
anyway that's not very important for my program.

and for your question,
I don't know, my teacher ask me to do that :/

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now