原因:1、减少编译次数 2、减少不必要的处理

 流程图:

vs 为什么使用#include "stdafx.h"

 

这个跟宏定义#ifndef xx #define xx  coding here #endif //xx

区别在于: 宏定义是防止头文件重复包含导致的重定义的编译错误;而stdafx.h是为了将已经编译过的模块不用重复编译而产生

相关文章:

  • 2021-07-12
  • 2021-12-05
  • 2021-05-18
  • 2021-06-08
  • 2022-01-15
  • 2021-07-29
  • 2021-05-30
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
  • 2021-09-04
  • 2021-05-22
  • 2022-12-23
  • 2021-08-02
相关资源
相似解决方案