I’m working on a school project and cannot figure out how to fix my program so I don’t get exit status -1.
The program asks for a student’s info, and then has you fill in what courses they are taking. In main, it asks for user input of 3 test grades in each course by using a nested for loop. The problem is, regardless of the number of courses, Once i enter the last test grade for the last course I always get exit status -1.
The after where the exit status -1 keeps happening, the for loop is supposed to stop, and then move on to testing certain functions in my classes. All I really need is for the program to get out of the for loops without exit status -1.