online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using std::cout; class General { public: General() {}; virtual void print(void) { cout << "From General\n"; } }; class Special : public General { public: Special() {}; using General::print; void print(int c) { cout << "From Special\n"; } }; int main() { Special s; s.print(3); // want to print from Special s.print(); // want to print from General }

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