vectors

From: iwasinnihon (iwasinnihon_at_hotmail.com)
Date: 03/30/04


Date: Tue, 30 Mar 2004 13:13:01 -0700

I have a question about vectors in c++.

I would like to read data from a file and then store it in vectors. For
example

Data example (this data is in a file called data.txt)

1 pr1-1 200 pr2-1 300

I would like to be able to collect this information and then print it as so.

# score
1 200
2 300

And then I would like to get the mean of the 2 scores.

I then want the program to check for scores less than 250 and then report as
follows:

Score 1 is below 250.

How would I do this?