如果加了就會(huì)出現(xiàn)
[Warning] parameter names (without types) in function declaration [enabled by default]
調(diào)用函數(shù)無(wú)需寫(xiě)返回值類(lèi)型,直接寫(xiě)函數(shù)名和參數(shù)
我也迷惑,回答問(wèn)題有字書(shū)限制
}則申明無(wú)歧義,沒(méi)有警告。
}則提示 line 3 [Warning] parameter names (without types) in function declaration [enabled by default]int main(int argc, char *argv[]){
編譯器把你那一行理解成函數(shù)聲明(function declaration)了,所以提示你:沒(méi)有參數(shù)的類(lèi)型(without types)比如:int main(int argc, char *argv[]){