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++ 設計新思維