C++ 常见编译错误及解决方法

时间:2018-06-19 11:46:03   收藏:0   阅读:1730

1.[Error] in C++98 ‘box1‘ must be initialized by constructor, not by ‘{...}‘

vector初始化问题: CBox box1 ={78.0,24.0,18.0}; 改成 CBox box1 (78.0,24.0,18.0)

或者开启编译选项 -std=c++11

 

 

--------(不断更新中)

日积月累,滴水穿石

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!