问答详情
源自:5-13 内部函数与外部函数

哪里错了呢

#include

#include "test.c"   //引用test.c文件 extern void printLine()     //这里定义的方法对吗? {   printf("**************\n");   } int main() {    say();    return 0; }哪里错了呀

提问者:qq_我的晴天在哪里_0 2018-01-22 17:24

个回答

  • 慕用4102905
    2018-01-22 23:27:34
    已采纳

    你应该是没注意到上方

    http://img2.mukewang.com/5a6602a10001032d06450311.jpg

    test.c中

    #include <stdio.h>

    extern void printfLine();

    static void say(){

        printLine();

        printf("I love imooc\n");

        printf("good good study!\n");

        printf("day day up!\n");

        printLine();

    }