nice assignment, now what do you think we should do for you?
Ancient Dragon
Retired & Loving It
30,043 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,341
Which chapter would that be? Of course there is nothing wrong with you reading the chapter yourself.
The instructions seem pretty clear to me Create the starter program with main() function
Add a character array that has 3 rows and 30 columns
Create an iostream object, open the data file and read the rows into the array.
Loop through the character array and, for each month, count the number of R's, S's and C's.
Display the report on the screen using std::cout.
If you don't know how to use ifstream then you can search for example code -- there is lots of it all over the net and even here at DaniWeb. Learn to make google one of your best programming buddies.
Ancient Dragon
Retired & Loving It
30,043 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,341
Thank you... And I did read the chapter...
did you figure this problem out by the way?
cassie_sanford
Junior Poster in Training
57 posts since Oct 2008
Reputation Points: 11
Solved Threads: 0
>>How do i find the month with the largest amount of rain?
You already have the array that contains the count of the number of Rs, Ss and Cs. Now all you have to do is iterate through that array and keep track of which month has the greatest number of Rs. How would you do that? Try it with pencil & paper first
Ancient Dragon
Retired & Loving It
30,043 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,341