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