一个小小的定义文件和头文件的问题
头文件(min.h )里写的是
#ifndef MIN_H
#define MIN_H
int min(int a,int b);
#endif
定义文件(min.c)里的是
#include "min.h"
int min(int a,int b)
{
if (a<b)
return a;
else return b;
}
用TC编译,2个文件在一个目录下面
但是编译min.c的时候说unable to open the include file 'min.h'
这是怎么回事阿?或者是我写头文件和定义文件的方法压根不对?