|
|
back to boardInput problem Posted by BoRN 8 Oct 2002 22:54 I don't know when the input will terminate any one pls help?? Re: Input problem while ((c=getc(stdin)!=-1) /* while not EOF*/ switch (c) { case '>' : case '<' : ..... } .... may be something of this sort. c=getc(stdin)!=-1[>> what does -1 refer Posted by BoRN 9 Oct 2002 19:07 Re: c=getc(stdin)!=-1[>> what does -1 refer i think it's End Of File (EOF) because input to standard input is a file. so... mah!!! |
|
|