online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <string> class Test { public: std::string _name; Test(std::string name) : _name(name) { } ~Test() { std::cout << "Destructor " << _name << std::endl; } Test& operator=(const Test& fellow) = default; //Test & operator= ( Test && ) = default; }; class B { public: Test t; B() : t("T0") {} B(std::string n) : t(n) {} }; int fce(B& b) { //std::cout << "destr "; //b.~B(); std::cout << "b = B(T2)\n"; b = B("T2"); std::cout << "return 0\n"; return 0; } int main() { B b("T1"); std::cout << "fce call\n"; fce(b); std::cout << "fce end " << b.t._name << std::endl; }

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