online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include "heap.h" int main() { Heap h; std::cout<<h<<std::endl; return 0; }
#ifndef Heap_hpp #define Heap_hpp #include <iostream> class Heap{ private: int mySize = 0; public: Heap(); friend std::ostream& operator<<(std::ostream &out,const Heap &h); }; #endif /* Heap_hpp */
#include "heap.h" Heap::Heap(){ } std::ostream& operator<<(std::ostream &out,const Heap &h){ out << h.mySize; return out; }

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