online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <string> using namespace std; enum MyBool { //MyBool is a programmer defined enumerated type FALSE_, //named value 0 TRUE_, //named value 1 POSSIBLE, //named value 2 LIKELY, //named value 3 UNLIKELY, //named value 4 }; int main() { MyBool something = TRUE_; switch (something) { case FALSE_: cout << "something is " << something << "\n"; cout << "Something is " << "false" << ".\n"; break; case TRUE_: cout << "something is " << something << "\n"; cout << "Something is " << "true" << ".\n"; break; case POSSIBLE: cout << "something is " << something << "\n"; cout << "Something is " << "false" << ".\n"; break; case LIKELY: cout << "something is " << something << "\n"; cout << "Something is " << "false" << ".\n"; break; case UNLIKELY: cout << "something is " << something << "\n"; cout << "Something is " << "true" << ".\n"; break; } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue