码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2018-06-19 11:46:03      阅读:1730      评论:0      收藏:0      [点我收藏+]

标签:span   编译选项   问题:   const   常见   class   ali   16px   str   

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

 

 

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

日积月累,滴水穿石

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

标签:span   编译选项   问题:   const   常见   class   ali   16px   str   

原文地址:https://www.cnblogs.com/maq-aegean/p/9197512.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!