template函數

#include "stdafx.h" #include <iostream> #include <string> using namespace std; template<class T, int N> T sum(T b,T e, T init=T()) { char chars[N]; cout<<"N: "<<N<<endl; init=b+e; return
相關文章
相關標籤/搜索