if (teamScore ==1 && teamScore != -999)
If team = 1 it can't be -999. Simplify both if statements
cout << "Team 1" << score1 = sum + numPoints;
cout << "Team 2" << score2 = sum + numPoints;
Did they both score the points? Once the output is done, what's the value of sum ? Is sum important?
WaltP
Posting Sage w/ dash of thyme
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944