online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Online C++ Compiler. Code, Compile, Run and Debug C++ program online. Write your code in this editor and press "Run" button to compile and execute it. *******************************************************************************/ #include <iostream> using namespace std; struct s{ private: double * d = nullptr; public: s() : d{new double}{} ~s(){ if (d != nullptr) delete d; } void setd(const double _d){ *this->d = _d; } double getd() const { return *this->d; } }; s operator+(const s & _s0, const s & _s1){ s ns; ns.setd(_s0.getd() + _s1.getd()); return ns; } int main(){ s s0; s s1; s s2; s2 = s0 + s1; 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