Doing a midterm assignment, and it is almost complete. The program is supposed to grade divers and give them a rating. You give the name and city of each diver, then the judges scores are given. This continues until you no longer want to include any more divers. The highest and lowest grades are supposed to be removed and then a average is taken. This average is supposed to be multiplied by a degree of difficulty. All of this works fine, but then when I try to enter a second diver it wont ask for a name, and I do not know why.
Try replacing line 32 with getline(cin >> std::skipws, diverName);
"cin >> ..." is leaving a carriage return ('\n') in the input buffer. When you loop around and getline is getting ready to read in a name, it sees the carriage return and says, "Looks like I've hit the end of the line. All done getting input."
What std::skipws does is format the input stream to skip all leading whitespace, including the newline that was left in the input buffer.