online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// Area rectangulo #include <iostream> using namespace std; typedef struct { int x; int y; } Vector; typedef struct { Vector esquina1; Vector esquina2; int area; } Rectangulo; void mostrar_area(Rectangulo* ptr); int main() { Rectangulo rec = {0,0,2,3}; mostrar_area(&rec); } void mostrar_area(Rectangulo* ptr) { float area = 0; area = abs(ptr->esquina1.x - ptr->esquina2.x) * abs(ptr->esquina1.y - ptr->esquina2.y); cout << "El area es de " << area << " unidades (cuadradas)." << endl; }

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