online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> class X { public: X(int i) : x(i) { std::cout << "X::X(int i) : " << x << "\n"; } X(const X &other) : x(other.x) { std::cout << "X::X(const X&) : " << x << "\n"; } private: int x; }; int main() { X A(42); X B = X(42); X C = 42; }

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