online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <string> using namespace std; class CreateSample { private: int id; public: CreateSample(int i) { id = i; cout << "Object " << id << " is created" << endl; } ~CreateSample() { cout << "Object " << id << " is destroyed" << endl; } CreateSample(const CreateSample&obj): id(obj.id) { std::cout<<"Copy ctor called"<<std::endl; } }; void fuct() { CreateSample o1(1); static CreateSample o2(2); } void fuct2(CreateSample o); int main() { CreateSample o5(5); fuct2(o5); return 0; } void fuct2(CreateSample o) { CreateSample o6 = o; }

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