Site hosted by Angelfire.com: Build your free website today!

 

We are such stuff that dreams are made of.”

 

Program 29
  C++                        Program 29

                        C++

                        K. Dzwonkiewicz

 

 

Retrieving data off your disk

 

Program 28 must be complete before this can be done.

 

Have your program open the data file that should now be on your disk.  Read the data off the disk into your program and get this output…

(make sure your data file has the EOF marker of –999 so you know when to stop reading.)

 

Sample Run:

           

           

    C++ Class Scores                            To discover winter and know it well, to find,        

            1)  75                                       Not to impose, not to have reasoned at all,

            2)  85                                       Out of nothing to have come on major weather,

            3)  95                                      

            4)  65                                       It is possible, possible, possible.  It must

            5)  65                                       Be possible.  It must be that in time

            6)  78                                       The real will from its crude beginnings come.

            7)  45

            8)  88

            9)  98

            10) 90

            11) 95

            Class average: 79.91