Solved

End Of File

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

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
memory leak detection 9 83
c language help - file paths 7 147
Grammars for C C++ and java 1 122
nested if statement in excel help 4 27
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
Examines three attack vectors, specifically, the different types of malware used in malicious attacks, web application attacks, and finally, network based attacks.  Concludes by examining the means of securing and protecting critical systems and inf…
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays 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.

809 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