online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> using namespace std; class Sam { public: static int demo; Sam(int x = 1, int y = 2, int z = 3) { X= x; Y = y; Z = z; } private: double X; double Y; double Z; }; int Sam::demo = 7; int main(void) { Sam sam1(6, 7, 8); cout << "Demo: " << Sam::demo << 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