I know that "break" is used to end a loop, but how does one exit a C++ console program, after the user enters a negative value, without using a loop?
For example, I would like to do this:
if (value == -1)
But the code above does not work. I included stdlib.h, without any success