online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <string> using namespace std; enum Color { //programmer defined enumerated type RED, //named value 0 YELLOW, //named value 1 GREEN, //named value 2 CYAN, //named value 3 BLUE, //named value 4 MAGENTA, // named value 5 }; int main() { Color my_color = BLUE; switch (my_color) { case RED: cout << "my_color is " << my_color << "\n"; cout << "My color is " << "red" << ".\n"; break; case YELLOW: cout << "my_color is " << my_color << "\n"; cout << "My color is " << "yellow" << ".\n"; break; case GREEN: cout << "my_color is " << my_color << "\n"; cout << "My color is " << "green" << ".\n"; break; case CYAN: cout << "my_color is " << my_color << "\n"; cout << "My color is " << "cyan" << ".\n"; break; case BLUE: cout << "my_color is " << my_color << "\n"; cout << "My color is " << "blue" << ".\n"; break; case MAGENTA: cout << "my_color is " << my_color << "\n"; cout << "My color is " << "magenta" << ".\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