online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> class Base { public: virtual void printNumber(int n = 42) { std::cout << "Base::printNumber(int): " << n << '\n'; } }; class Derived : public Base { public: virtual void printNumber(int n = 42) { std::cout << "Derived::printNumber(int): " << n << '\n'; } }; int main() { Base *b = new Derived; b->printNumber(); delete b; }

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