So i'm trying to write a program that will prompt the user to keep entering as much student grades as needed. My goal would be to first ask for one grade and have the letter grade displayed on the screen when that is done I would like it to ask for another grade repeating the process over and over in till i press a button that says to stop. can you point me into the right direction?
2. Your while loop condition (while(!==-1)) makes no sense. Might try: while (number != -1){...}
3. Your endless loop is because your input (cin >> number) is outside the loop so if number isn't entered as -1 the loop continues without being able to enter another value to number. Place (cin >> number) inside your loop. HTH