online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include<iostream> #include<thread> class H { public: void operator()(){ printf("This is H(), I take no argument\n"); } void operator()(int x){ printf("This is H(), I received %d \n",x); } //default constructor H() { std::cout<<"default constructor called"<<std::endl; } //move constructor H(H&&) { std::cout<<"move constructor called"<<std::endl; } }; int main(){ int param = 0xD; std::thread td_1 = std::thread(H()); std::thread td_2 = std::thread(H(),param); td_1.join(); td_2.join(); 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