online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> class B; class A{ public: int a_i=10; //only a declaration here void A_lookup(B b); }; class B{ public: int b_i=20; void B_lookup(A a){ std::cout << a.a_i <<std::endl; } }; //this is a definition. At this point B is a complete type void A::A_lookup(B b) { std::cout << b.b_i <<std::endl; } int main(void){ A a; B b; a.A_lookup(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