online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <string> using std::cout; using std::endl; using std::string; class A { public: string m_x; A(string x="bla bla bla") :m_x(x) { } }; static class B { public: static const A& ref() { return A("Hello,World!"); } }; int main() { A one = B::ref(); cout << one.m_x << 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