Heya everyone, I am a freshman in college and am taking C++. This is not a begging thread for someone to solve my problem because I am interested in learning this myself.
So here is my question:
I am constructing a program that opens a file that has the names of students in it. It must then list the students on the screen in this format.
Last First Middle
That much I have accomplished.
It must then open up a file (that is already made) for each student listed. the files are in the format of (firstlast.dat - Ex. JohnDoe.dat) The files have a list of an unknown amount of grades from 0 - 100.
My question is, how do I tell the program what the name of the student is so that it may open it? Since each student's name is split into the variables first, middle, and last, is there a way I can combine strings then tell the program to .open (combined string.dat)?
Thanks for the help.
So here is my question:
I am constructing a program that opens a file that has the names of students in it. It must then list the students on the screen in this format.
Last First Middle
That much I have accomplished.
It must then open up a file (that is already made) for each student listed. the files are in the format of (firstlast.dat - Ex. JohnDoe.dat) The files have a list of an unknown amount of grades from 0 - 100.
My question is, how do I tell the program what the name of the student is so that it may open it? Since each student's name is split into the variables first, middle, and last, is there a way I can combine strings then tell the program to .open (combined string.dat)?
Thanks for the help.
Comment