4 // Purpose: to sum the integers in the file sumit.dat
5 // Author: pc2@ecs.csus.edu or http://www.ecs.csus.edu/pc2
7 // Sat Oct 30 12:43:18 PDT 1999
9 // caveat - this is not nice code, copy at own risk ;)
11 // $Id: sumit.cpp,v 1.1 2005/03/06 05:13:57 laned Exp $
22 ifstream
filein("sumit.dat");
26 cerr
<< "Could not read from file sumit.dat " << endl
;
43 cout
<< "The sum of the positive integers is " << sum
<< endl
;