online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include<iostream> using namespace std; float prostopadloscian1(float a, float b, float h); float prostopadloscian2(float a, float b, float h); void pause(); int main() { float a, b, h; cout << "podaj a" << endl; cin >> a; cout << "podaj b" << endl; cin >> b; cout << "podaj h" << endl; cin >> h; cout << "\nobjetosc prostopadloscianu wynosi: " << prostopadloscian1(a, b, h); cout << "\nobjetosc prostopadloscianu wynosi: " << prostopadloscian2(a, b, h); pause(); // system("PAUSE"); return 0; } float prostopadloscian1(float a, float b, float h) { float obj = a * b * h; return obj; } float prostopadloscian2(float a, float b, float h) { return 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