Computer Science A - peek() - 2/9/00 peek - Will check the next item in the input stream without actually executing a formal read (cin or infile). Example: while(cin.peek() != '\n') { cin>>num; cout<