online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include "func.h" #include "temp.h" int main() { Temp t1, t2; //call func func(t1,t2); return 0; }
#pragma once //declaration for class temp class Temp; //declaration for function func void func(Temp t1, Temp t2);
#include "func.h" #include "temp.h" #include<iostream> //implementation for function func void func(Temp t1, Temp t2) { std::cout<<"func called"<<std::endl; //do something with t2 and t2 }
#pragma once class Temp { int i = 0; public: //default constructor Temp();//this is a declarationt };
#include "temp.h" #include <iostream> Temp::Temp() { std::cout<<"default constructor called"<<std::endl; }

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