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
相关文章
相关标签/搜索