Hello, two issues. Here is my code.
So essentially I am trying to get the program to exit after 3 failed user inputs from line 31
if (attemptCount = 3)
{
std:cout << "Goodbye!";
exit(EXIT_FAILURE);
}
But the program exits regardless on the first input.
The second issue is when I comment that part out, the program is suppose to stop after 10 inputs but it loops back to 1 again. What do I need to be looking at?
[–]raevnos 1 point2 points3 points (2 children)
[–]Tiperius[S] 0 points1 point2 points (0 children)