本人自學編程還沒多久,遇到問題比較初級,希望各位路過的大神多多指點,不喜勿噴哈。代碼如下:/*在一個文件中使用兩個函數*/#include <stdio.h>void butler (void); /* ISO/ANSI C函數原型*/int main (void){ printf("I will summon the butler function.\n");
butler(); printf("Yes. Bring me some tea and writeable CD-ROMS.\n"); return 0;
}void butler (void) /* 函數定義的開始 */{ printf("You rang, sir?\n")
}我的問題是:void butler (void); /* ISO/ANSI C函數原型*/究竟這一行代碼起到什么作用? 以前學過一點JAVA和python 印象中里面沒有類似這樣的東西
【編程初入門】 看C Primer Plus 看到剛開頭函數定義的時候有個小問題,感覺函數有重復定義
慕蓋茨4494581
2019-02-12 22:15:51