Input Help Tue Apr 25 00:15:36 EDT 2006 Input comes from the standard input. This is `stdin' in C, `cin' in C++, `System.in' in JAVA, and `*standard- input*' in COMMONLISP. These input streams do NOT have to be opened; you should NOT open any files. You may assume that input is correctly formatted, except for the rare problem where you are told to produce special output if the input contains a formatting error. Do not waste time checking for input errors when you do not have to. In some problems newlines are NOT syntactically signifi- cant, and newlines are just like any other space charac- ter on input. If you are writing in C you may need the ungetc func- tion and the gets function. If you are writing in C++ you may need cin.peek() and cin.getline(buffer, sizeof buffer). If you are writing in JAVA you may need either the StreamTokenizer or StringTokenizer classes. See the code in demos/count/count1.java and demos/javaio/ javaio.java. If you are writing in COMMONLISP, you may need calls like (read-line t nil 'eof) (read-char t nil 'eof) (peek-char nil t nil 'eof) File: input Author: Bob Walton Date: See top of file. The authors have placed this file in the public domain; they make no warranty and accept no liability for this file. RCS Info (may not be true date or author): $Author: hc3 $ $Date: 2006/04/25 04:17:59 $ $RCSfile: input,v $ $Revision: 1.11 $