online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> class A { public: void funcA() { std::cout << "banana" << std::endl; } }; int main() { A nonconstobject; nonconstobject.funcA(); //this works const A constobject; //note the const here constobject.funcA(); //this gives error: passing ‘const A’ as ‘this’ argument discards qualifiers }

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