Help: bools not showing values, Says "Unused variables"

Hello, so I’m doing the C++ Fundamentals course, and in lecture 14 “Comparison Operators”, when attempting to add “bool equal, or bool notEqual” etc. somehow it says “unused variables” when I hover over them to find out if they’re “true” or “false”. Any idea? Please and thank you!

Any help would be deeply appreciated!

Apologies for the late reply.

You don’t get to see it in the lecture video, but the same warning happens to Stephen when he compiles and tests the program. This is by design and the compiler is letting you know that these variables aren’t being used anywhere and is kindly suggesting that they can be removed. For the purpose of the lecture you can ignore this warning.

Before you start debugging, don’t forget to place a breakpoint like he does on line 18 (line 17 in your case).

Try first choosing “stop debugging” then debug again. This fixed it for me.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms