//P-3 Templates
#include <iostream.h>
#include <conio.h>
template < class T >
void show (T val)
{
cout << endl << "VALUE : " << val;
}
void show (char ch)
{
cout << endl << "character" << ch;
}
void main ()
{
clrscr();
show('A');
show(123);
show(19.34f);
getch();
}
Comments
Post a Comment