![](https://img-blog.csdnimg.cn/20190918140158853.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
C / C++编程奇技
主要是记录用C、C++进行编程时遇到的问题
知勉
山下旌旗在望,山头鼓角相闻。
展开
-
[C++] #ifndef关键字 / C++头文件命名规则
原文参考出自此博客在Vs2017编写C++程序时可以将引用的头文件单独放在另一个头文件中,以此减少每一个.h或.cpp文件都要单独include一遍。如:#ifndef PCH_H#define PCH_H#include <iostream>#include <vector>#include <cstdlib>#include <random>#include <cmath>#include <algorithm>转载 2020-09-02 11:33:51 · 1338 阅读 · 0 评论 -
如何使Dev-C++用上C++11新特性
昨天刷PAT需要用到Auto来遍历但是编译之后竟然报错搜索之后是因为没有支持c++11新特性在dev中有两种方式可供选择1. tools --> compiler options2. tools --> compiler options无论哪种都能正常运行...原创 2020-04-01 12:47:22 · 193 阅读 · 0 评论