online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
//Another C++ program; Demonstrates conditionals #include <iostream> using namespace std; int main () { int yearBorn; cout << "Enter year born: "; cin >> yearBorn; if (yearBorn < 1946) { cout << "Greatest Generation"; } else if (yearBorn <= 1964) { cout << "Baby Boomer"; } else if (yearBorn <= 1984) { cout << "Generation X"; } else if (yearBorn <= 2004) { cout << "Millennial"; } else { cout << "TBD"; } return 0; }

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