Extracting info from a text file

Hello. I have a text file like this:

Department B
Billy 10 8 4 5 6 F1
Sally 9 2 3 9 10 F2
Joe 8 1 9 8 1 2 f4

These numbers indicate the weekly hours for each person. What I have to do for the assignment is calculate some stuff using some formulas based on categories F1 through F4 and then print some stats.

I used the getline method to get the textfile's lines and store them in a string vector. My question is how do I extract these numbers from the vector so that I can perform operations on them?

Any help is greatly appreciated.
Topic archived. No new replies allowed.