錯哪了???
#include <stdio.h>
int learing()
{
??? printf("%s\n","小明在慕課網學習");
??? return 0;
}
int number(int a)
{
??? printf("小明在慕課網上學習了%d門課程", a);
??? return 0;
}
int main()
{
??? int learing();
??? int number(5);
??? return 0;
}
In function 'main':
error: expected declaration specifiers or '...' before numeric constant
warning: no newline at end of file
2015-10-07
調用函數的時候別加int
2015-10-10
int learing() 這里的 int ,僅是用來聲明函數 learing() 是整數型函數;
和定義 int a 一樣,使用時,不加 int ;