chris
2009-09-27 08:44:29 UTC
I am trying to read from a file that has data types int and string(c++), the file data looks like this:
002345467
Mary Jane
34
004566577
Prescott Schultz
86
003455675
Allison Dold
88
003455676
Brian Cantrell
87
The list goes on for a while. It is the student ID, name and score of students (all fictitious btw). The problem I am having is I am trying to assign each of these values to a declared variable in the main program but do not know how to assign variables of different data types from a file. Can anyone point me in the right direction? Thanks in advance