為什么#include "test.c"需要注釋掉才能通過編譯
#include <stdio.h>
//#include "test.c" ? //引用test.c文件
extern void printLine() ? ? //這里定義的方法對嗎?
{
? ?printf("**************\n"); ??
}
int main()
{
? ? say();
? ? return 0;
}
#include <stdio.h>
//#include "test.c" ? //引用test.c文件
extern void printLine() ? ? //這里定義的方法對嗎?
{
? ?printf("**************\n"); ??
}
int main()
{
? ? say();
? ? return 0;
}
2017-09-13
舉報(bào)
2017-09-23
但是沒有include 的話, 怎么能使用里面的say()???
2017-09-14
因?yàn)椋蛔⑨尩舻脑?,就相?dāng)于printLine沒有聲明就先用了