online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include "Test.h" #include <iostream> int main() { Test<int> t(2); std::cout << "Hello World!\n"; }
#pragma once #include <iostream> template<typename T> class Test { T m_t{}; public: Test(const T& t) { m_t = t; std::cout << "Test.h set t = " << t << 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