//头文件test.h
#ifndef _LJY_TEST_H__
#define _LJY_TEST_H__
//变量声明
//函数声明
#endif
============
当.c文件里出现多次包含test.h时不会出问题
例如:
#include “test.h”
#include “test.h”
#include “test.h”
//头文件test.h
#ifndef _LJY_TEST_H__
#define _LJY_TEST_H__
//变量声明
//函数声明
#endif
============
当.c文件里出现多次包含test.h时不会出问题
例如:
#include “test.h”
#include “test.h”
#include “test.h”