online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> using namespace std; class point { private: int X, Y; public: point () {X=0; Y=0;} void setPoint(int a, int b) { X = a; Y = b; } int getX(void) { return X; } int getY(void) { return Y; } }; //Main function int main () { //object point p1, p2; p1.setPoint(6, 8); cout<<"p1: "<<p1.getX () <<" , "<<p1.getY () <<endl; 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