為什么一定要去掉對(duì)文件#include "test.c" 的引用?????
#include <stdio.h>
//#include "test.c"? ?//引用test.c文件
void say(); //聲明test.c文件say函數(shù)
extern void printLine()? ? ?//這里定義的方法對(duì)嗎?
{
? ?printf("**************\n");? ?
}
int main()
{
? ? say();
? ? return 0;
}
為什么一定要去掉對(duì)文件#include "test.c"? 的引用?????
2018-06-03
因?yàn)橐粋€(gè)項(xiàng)目中,不能有一個(gè)文件帶入另一個(gè)文件中,不然會(huì)報(bào)錯(cuò)