#include <stdio.h>
//这里是用绝对路径引用
#include "C:\Users\hsh\CLionProjects\untitled3\test.h.c"
int main(){
int i=10;
int j=20;
if(i LAG j)
printf("%d larger than %d\n",i,j);
else if(i EQ j)
printf("%d equal to %d\n",i,j);
else if(i SMA j)
printf("%d smaller than %d\n",i,j);
else
printf("No such value\n");
}
test.h的内容
#define LAG >
#define SMA <
#define EQ ==
运行结果