Overloading using templates

#include
#include
void fun(float a)
{
cout<<"float"<}
template
void fun(T a)
{
cout<<"hello"<}
void main()
{
clrscr();
int a=10;
fun(a);
float x=25.09f;
fun(x);
getch();
}

No comments: