online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <cstdlib> #include <string> #include <math.h> using namespace std; class TPunkt { public: float x; float y; TPunkt() {x=0;y=0;} TPunkt(float,float); TPunkt(const TPunkt &b) { x=b.x; y=b.y; } float getX() const{ return x;} float getY() const{ return y;} float Odleglosc(const TPunkt& b)const; }; float TPunkt::Odleglosc(const TPunkt &b) const { return hypot(this->x - b.x, this->y - b.y); } main() { TPunkt p1; TPunkt p2; p1.x=1; p1.y=1; p2.x=0; p2.y=3; 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