141

c++用类模版实现push与 pop-hailong-51CTO博客

 6 years ago
source link: http://blog.51cto.com/haidragon/2067594
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
#include<iostream>usingnamespacestd;template<classT>classtempla{public://初始化templa(intn){m=n;mystr=(T*)malloc(sizeof(T)*n+sizeof(T));for(inti=0;i<n;i++){cout<<"请输入第"<<i<&

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK