online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> using namespace std; template <int N> void myfunc1() { cout << N << endl; } template <int N> void myfunc2() { cout << "No me importa el valor de N" << endl; } int main() { // Invocar una funcion a la que le interesa usar el valor explicito // todas las funciones son distintas myfunc1<1>(); myfunc1<456>(); // Invocar una funcion en que el parametro del template se ignora myfunc2<1234>(); return 0; }

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