online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <iostream> using namespace std; int main() { char values[] = {'A', 'B', 'C'}; for (int i = 0; i < 3; i++) { char someValue = values[i]; for (int j = 0; j < 2; j++) { bool boolX = j % 2 == 0; for (int k = 0; k < 2; k++) { bool boolB = k % 2 == 0; switch(someValue) { case 'A': if (boolX) { case 'B': cout << "Branch 0: " << someValue << "," << boolX << "," << boolB << endl; } else if (boolB) { case 'C': cout << "Branch 1: " << someValue << "," << boolX << "," << boolB << endl; } else { cout << "Branch 2: " << someValue << "," << boolX << "," << boolB << endl; } break; case 'D': // blah, blah 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