Select Git revision
templates-02.cpp
Peter Gerwinski authored
templates-02.cpp 227 B
#include <iostream>
#include <string>
using std::cout;
using std::endl;
using std::string;
template <typename t>
void print (t x)
{
cout << x << endl;
}
int main ()
{
print (42);
print ("Hello, world!");
return 0;
}