006.C++头文件

1.引用头文件

  • 标准头文件       #include <iostream>
  • 自定义头文件   #include "complex.h"

2.防卫式(guard)声明

//以complex.h为例
#ifndef __COMPLEX__
#define __COMPLEX__
/*
*
*
*
*/
#endif

 

posted @ 2018-12-12 17:41  Timothy_prayer  阅读(120)  评论(0)    收藏  举报