考虑全局变量/函数 调用时如何防止代码入侵
仅供参考:
#include <stdio.h>
#include <stdlib.h>
#ifndef USER_H
//#include "user.h"
#endif
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
#ifdef USER_H
printf("global is:%d\n",global);//全局变量
user_eat();//模块方法
#else
printf("nothing to say...\n");
#endif
return 0;
}