這是啥問題
hello.c:?In?function?'main': hello.c:10:15:?error:?expected?declaration?specifiers?or?'...'?before?numeric?constant ?????int?Learn(5); ???????????????^
這是錯誤提示,
函數是
int Learn(int n)
{
????printf("學習了%d門課程",n);
}
主函數調用
int Learn(5);
寫法上沒啥問題就只有這個提示所以其他的我就省略了
2019-10-05
去掉int
2019-10-15
主函數調用去掉int