Solved

End Of File

Posted on 2004-10-02
3
295 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand and use structures in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

707 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