Pages

Showing posts with label class Template. Show all posts
Showing posts with label class Template. Show all posts

Wednesday, December 21, 2011

Class Template



#include<iostream.h>
#include<conio.h>
template<class T>
class stack
{
T a[3];
int top;
public:
stack()
{
top=-1;
}