1
int s = 4;
int a[s]={2,3,4,5};
VS提示 表达式必须含有常量值,只需要改为const int s = 4;
推荐进阶学习C++的建议书籍
泛型编程与stl
stl源码剖析
c++ template
c++ template metaprogramming
c++ 设计新思维
1
int s = 4;
int a[s]={2,3,4,5};
VS提示 表达式必须含有常量值,只需要改为const int s = 4;
推荐进阶学习C++的建议书籍
泛型编程与stl
stl源码剖析
c++ template
c++ template metaprogramming
c++ 设计新思维