I am writing a code for a student list. The user can choose to input the number of students, and then the program will ask the user to give a name for each student, which can be up to 45. I cannot use an array or vector for this program. I don't know how to do this. (Also new to c++, and I don't have the required textbook)
I guess what I mean is that I want a .txt file with the names on different lines, but when I run my program as-is, the output is all of the names together with no spaces.