//For class using ,you can set a serious of macro to predict something//
//when you call this macro ,the template could make a new function by your input//
template <typename T,int N>
class Array
{
private:
T m_Array[N];
public:
int Getsize() const { return N; }
};
int main()
{
Array<std::string,100> array;
std::cout << array.Getsize() << std::endl;
std::cin.get();
}
标签:what,int,C++,template,using,Array From: https://www.cnblogs.com/yangpeiqi123/p/16885861.html