templatestruct Stack{T *date;int top;int size;};
模板要有模板的样,要有template模板头,而typedef在定义类型时要求类型必须可知,因T类型不可知,所以不能对它用typedef。