Program I-O.

From: R. Clayton <rclayton_at_monmouth.edu>
Date: Mon, 17 Sep 2007 14:42:24 -0400


  Do you have a preference for the way the input is taken in by the program for   the assignment? We currently have it set to read in a .txt file.

Your program should read from std-in (std::cin in c++) and write normally to std-out (std::cout in c++); errors messages should go to std-err (std::cerr in c++); see the assignment page for details. My testing code assumes the program under test uses std-in, std-out, and std-err; programs that don't do that won't do well when tested.

See Section D.1 in Nyhoff for a C++ I-O summary and Section 5.1 for details. For this assignment the important parts are the insertion and extraction operators and stream state; you can use the other things described, but they don't make anything easier (at least they didn't for me). You might also want to spend some time on the part of Section 5.2 that covers string streams if you don't know about them; string streams can make things much easier if you understand how to use them. Received on Mon Sep 17 2007 - 14:43:27 EDT

This archive was generated by hypermail 2.2.0 : Thu Sep 20 2007 - 14:50:31 EDT