Solved

End Of File

Posted on 2004-10-02
3
260 Views
Last Modified: 2010-04-15
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 ?
Thanks
0
Comment
Question by:matthew016
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
ankuratvb earned 125 total points
ID: 12206865
Ctrl-Z
0
 
LVL 9

Expert Comment

by:ankuratvb
ID: 12206872
But Why do you want the user to enter the EOF character?
0
 
LVL 9

Author Comment

by:matthew016
ID: 12206930
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 :/

0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
The goal of this video is to provide viewers with basic examples to understand and use switch statements in the C programming language.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now