例如做一个内联函数 #ifndef _MYHEAD_H #define _MYHEAD_H extern inline int func() 在.c中调用时用 #include “./myhead.h”