我用VS運行了一下,用的數(shù)是提示的代碼,在慕課上也顯示了以上的內(nèi)容,來個人講解一下
hello.c:?In?function?'getPeachNumber': hello.c:2:5:?warning:?type?of?'n'?defaults?to?'int'?[-Wimplicit-int] ?int?getPeachNumber(n) ?????^~~~~~~~~~~~~~
hello.c:?In?function?'getPeachNumber': hello.c:2:5:?warning:?type?of?'n'?defaults?to?'int'?[-Wimplicit-int] ?int?getPeachNumber(n) ?????^~~~~~~~~~~~~~
2022-05-05
舉報
2023-07-11
函數(shù)的形參也要定義數(shù)據(jù)類型
2022-06-10
int getPeachNumber(int n),形參
2022-05-10
這個是用戶自定義的函數(shù)