Template C++ Tutorial

#include  
using namespace std; 
 
template  
void myfunc(Type1 x, Type2 y) 
{ 
  cout << x << ' ' << y << '\n'; 
} 
 
int main() 
{ 
  myfunc(10, "hi"); 
 
  myfunc(0.23, 10L); 
 
  return 0; 
}
10 hi
0.23 10