![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++primer
_Alee_
show me the source code
展开
-
C++primer(第五版)第一章中的sales_item.h
去书本上的网站并没有找到sales_item.h的头文件,百度了一下将源码放在这里原创 2018-01-04 12:03:14 · 2897 阅读 · 0 评论 -
C++primer例题3.6使用范围for编译出现问题
问题: 当在C++文件中使用了范围for时,编译的时候打印下列错误ISO C++ forbids declaration of ‘c’ with no typerange-based ‘for’ loops are not allowed in C++98 mode问题原因: 是因为范围for是c++11的标准,在c++98中不支持,所以编译会报错原创 2018-01-06 09:37:02 · 365 阅读 · 0 评论