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

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

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

日积月累,滴水穿石

猜你喜欢

转载自www.cnblogs.com/maq-aegean/p/9197512.html