New to coding so I don’t understand many error codes. Can anyone with a little bit of experience tell what I am doing wrong?
?
New to coding so I don’t understand many error codes. Can anyone with a little bit of experience tell what I am doing wrong?
?
The insertion (
<<
) operator, which is preprogrammed for all standard C++ data types, sends bytes to an output stream object.
The extraction operator (
>>
), which is preprogrammed for all standard C++ data types, is the easiest way to get bytes from an input stream object.
In your screenshot, you wrote:
cout << "Enter Number of Judges (4-8)";
cin >> nj;
This is correct.
But later in the code, in the if
statements, you mixed up the operators.
You wrote:
cout >> "Invalid. Enter Number of Judges Again (4-8)";
cin << nj;
This is incorrect.
Same mistake in the other if
statement.