online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <string> class T{ public: int x = 0, y = 0; T(){ std::cout << "T() constr called..." << std::endl; }; T(int x, int y):x(x),y(y){ std::cout << "T(x,y) constr called..." << std::endl; } void inspect(){ std::cout << "T.x: " << this->x << std::endl; std::cout << "T.y: " << this->y << std::endl; } }; int main() { T t1(5,6); t1.inspect(); std::cout << std::endl; T t2 = {}; t2.inspect(); }

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