Loading

摘要: 问题 使用C++对类的成员变量进行初始化赋值。 class A { private: std::vector<int> vec(10,0); } 报错expected identifier before numeric constant 原因 事实上C++不允许在类的成员变量中使用()初始化,编译器 阅读全文
posted @ 2022-03-22 10:40 azureology 阅读(604) 评论(0) 推荐(0)