online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include<iostream> using namespace std; void prostopadloscian1(); void prostopadloscian2(); void pause(); float a, b, h; int main() { cout << "podaj a" << endl; cin >> a; cout << "podaj b" << endl; cin >> b; cout << "podaj h" << endl; cin >> h; cout << "\nobjetosc prostopadloscianu wynosi: "; prostopadloscian1(); cout << "\nobjetosc prostopadloscianu wynosi: "; prostopadloscian2(); pause(); // system("PAUSE"); return 0; } void prostopadloscian1() { float obj = a * b * h; cout << obj; } void prostopadloscian2() { cout << a * b * h; } void pause() { cout << "\n\nPress Enter to continue "; cin.ignore(); int flag = cin.get(); }

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