為什么這樣是對的?
#include <stdio.h> test.c? //引用test.c文件
extern void printLine()? ? ?//這里定義的方法對嗎?
{
? ?printf("**************\n");? ?
}
int main()
{
? ? say();
? ? return 0;
}
#include <stdio.h> test.c? //引用test.c文件
extern void printLine()? ? ?//這里定義的方法對嗎?
{
? ?printf("**************\n");? ?
}
int main()
{
? ? say();
? ? return 0;
}
2019-09-14
舉報
2019-09-15
#include <stdio.h> test.c? 與?#include <stdio.h> 等價 編譯器只取 <stdio.h>? ,后面的會被扔掉。
另:一個#include 只能引用一個h文件。