課程
/后端開發(fā)
/C
/C語言入門
按他說的把static變成extern也運(yùn)行不出來啊,但繼續(xù)把#include "test.c"刪掉就可以運(yùn)行成功,但還是報(bào)錯(cuò),求解!
2017-11-30
源自:C語言入門 5-13
正在回答
#include <stdio.h>
/*這塊刪掉*/
extern/*改為外部變量*/ void printLine() ? ? //這里定義的方法對(duì)嗎?
{
? ?printf("**************\n"); ??
}
int main()
? ? void say();/*加一個(gè)函數(shù)聲明*/
? ? say();
? ? return 0;
int say(){
? ? void printLine();/*加一個(gè)函數(shù)聲明*/
? ? printLine();
? ? printf("I love imooc\n");
? ? printf("good good study!\n");
? ? printf("day day up!\n");
拿好不謝
為什么把#test.c注釋掉
舉報(bào)
C語言入門視頻教程,帶你進(jìn)入編程世界的必修課-C語言
2 回答內(nèi)部函數(shù)和外部函數(shù)
1 回答內(nèi)部函數(shù)和外部函數(shù)
2 回答內(nèi)部函數(shù)和外部函數(shù)那題
1 回答內(nèi)部函數(shù)與外部函數(shù)
3 回答Part內(nèi)部函數(shù)與外部函數(shù)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2017-11-30
#include <stdio.h>
/*這塊刪掉*/
extern/*改為外部變量*/ void printLine() ? ? //這里定義的方法對(duì)嗎?
{
? ?printf("**************\n"); ??
}
int main()
{
? ? void say();/*加一個(gè)函數(shù)聲明*/
? ? say();
? ? return 0;
}
#include <stdio.h>
int say(){
? ? void printLine();/*加一個(gè)函數(shù)聲明*/
? ? printLine();
? ? printf("I love imooc\n");
? ? printf("good good study!\n");
? ? printf("day day up!\n");
? ? printLine();
}
拿好不謝
2018-09-29
為什么把#test.c注釋掉