定義和調(diào)用函數(shù)
#include <stdio.h>
/* 考慮一下哪個(gè)輸出該用無參函數(shù)哪個(gè)輸出該用有參函數(shù)呢? */
int test()
{
? ? printf("小明在慕課網(wǎng)上學(xué)習(xí)");
? ? return(0);
}
int test2 (int n)
{? ?
? ? printf("小明在慕課網(wǎng)上已經(jīng)學(xué)習(xí)了%d門課程",n);
? ? return(0);
}
int main()
{
? ?test();
? ?tet2(3);
? ? return 0;
}
哪里錯(cuò)了啊
2018-02-02
主函數(shù)里面test(3)寫成了tet(3)