online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <cstdlib> #include <conio.h> #include <stdio.h> using namespace std; int main() { for(;;){ int a, b; char c; cout<<"podaj a"<<endl; cin>>a; cout<<"podaj b"<<endl; cin>>b; cout<<"_____________________________"<<endl; cout<<"WYBIERZ CO MAM ZROBIC Z LICZBAMI"<<endl; cout<<"1. dodaj"<<endl; cout<<"2. pomnoz"<<endl; cout<<"3. zamknij program"<<endl; cout<<"WYBOR:"<<endl; c=getch();getch(); switch(c) { case 'SOH': cout<<"WYNIK:"<<a+b<<endl; break; case 'STX': cout<<"WYNIK:"<<a*b<<endl; break; case '3': exit(0); default: cout<<"jebles sie"<<endl; } cout<<"_____________________________"<<endl; getchar();getchar(); system ("cls"); } }

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