為什么運行錯誤
#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;
}
2018-11-04
舉報
2018-11-22
#include?<stdio.h> static?void?say() {???? void?printLine();?? printf("I?love?imooc\n");???? printf("good?good?study!\n");???? printf("day?day?up!\n");???? void?printLine(); }請留意hello.c后面的test.c這個文件。里面也需要改。改為我這樣就可以運行了。一定要細心,不然越學越煩
2018-11-05
#include <stdio.h>
?//引用test.c文件
extern void printLine()? ? ?//這里定義的方法對嗎?
{
? ?printf("**************\n");? ?
}
static void say(){
? ? printLine();
? ? printf("I love imooc\n");
? ? printf("good good study!\n");
? ? printf("day day up!\n");
? ? printLine();
}
int main()
{
? ? say();
? ? return 0;
}
2018-11-04
#include <stdio.h>
void say(){
??? printLine();
??? printf("I love imooc\n");
??? printf("good good study!\n");
??? printf("day day up!\n");
??? printLine();
}