摘要:
学过c++的朋友一定对下面的代码很熟悉吧:1#include<iostream>2usingnamespacestd;3template<classT>classarray4{5public:6array(intsize)7{8a=newt[size];9}10//moreinterface.11private:12T*a;13}园子里的很多朋友都是从c++的templat... 阅读全文
摘要:
学过c++的朋友一定对下面的代码很熟悉吧:1#include<iostream>2usingnamespacestd;3template<classT>classarray4{5public:6array(intsize)7{8a=newt[size];9}10//moreinterface.11private:12T*a;13}园子里的很多朋友都是从c++的templat... 阅读全文
|