online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <string> using namespace std; enum Color { //Color is a programmer defined enumerated type BLACK, //named value 0 WHITE, //named value 1 }; int main() { Color something = WHITE; switch (something) { case BLACK: cout << "something is " << something << "\n"; cout << "Something is " << "black" << ".\n"; break; case WHITE: cout << "something is " << something << "\n"; cout << "Something is " << "white" << ".\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