在c:/tc/file/下在文件建立四个文件
a.prj file1.c big.c big.h
******************************************
a.prj
的内容
c:/tc/file/file1.c
c:/tc/file/big.c
******************************************
******************************************
file1.c
的内容
#include<stdio.h>
#include <c:/tc/file/big.h>
main()
{
printf("liuchunhai%d",big(1,2));
}
******************************************
******************************************
big.c
的内容
#include "c:/tc/file/big.h"
int big(int a,int b)
{
int c;
if (a>b)
c=a;
else
c=b;
return c;
}
******************************************
******************************************
big.h
的内容
int big(int,int);
******************************************
在tc2.0的主菜单上选择project菜单,找到project name并按回车 输入c:/tc/file/a.prj
祝初学者成功。