iccaros Posted May 15, 2005 Report Share Posted May 15, 2005 ok I need to input data.. so I add something likewhile ((a = prompt_number ( "enter Number or EOF to quit: " )) != EOF ) ;the not EOF part is getting me.. is this a trick as eof fro input is control-C right... which kills the program correct?? so an I really just saying .. run program forever.. and I have ot kill the program with control-C.. note since I am checking for correct number input I can't enter EOF as a answer. Quote Link to post Share on other sites
jcl Posted May 15, 2005 Report Share Posted May 15, 2005 (edited) the not EOF part is getting me.. is this a trick as eof fro input is control-C right... which kills the program correct??EOF is ^D. ^C sends an interrupt signal.note since I am checking for correct number input I can't enter EOF as a answer.Well, you can, but it calls for a slightly a more interesting approach to input prompts. Edited May 15, 2005 by jcl Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.