Solved

End Of File

Posted on 2004-10-02
3
248 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

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…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

708 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

16 Experts available now in Live!

Get 1:1 Help Now