Home  |   Notes  |   Languages  |   Programs  |   Homework

Re: End of input (was Re: Pascal Pointer Q)

New Message Reply About this list Date view Thread view Subject view Author view

Stephen Edwards (edwards@CS.VT.EDU)
Mon, 19 Feb 2001 08:51:21 -0500


Message-ID:  <3A9124D9.D071B852@cs.vt.edu>
Date:         Mon, 19 Feb 2001 08:51:21 -0500
From: Stephen Edwards <edwards@CS.VT.EDU>
Subject:      Re: End of input (was Re: Pascal Pointer Q)

> Another question I have is what is the exit condition for the program? Does
> the program exit cleanly if given empty input or maybe the word "quit"?

As discussed in class, test for the end of the input stream using "Eof"
(end of file).

                                -- Steve

--
Stephen Edwards            604 McBryde Hall          Dept. of Computer Science
e-mail      : edwards@cs.vt.edu           U.S. mail: Virginia Tech (VPI&SU)
office phone: (540)-231-5723                         Blacksburg, VA  24061-0106
-------------------------------------------------------------------------------


New Message Reply About this list Date view Thread view Subject view Author view

Home  |   Notes  |   Languages  |   Programs  |   Homework
copyright © 2001 Virginia Tech, ALL RIGHTS RESERVED
Class site maintained by Stephen H. Edwards <edwards@cs.vt.edu>