-4
if(tempC==c || tempC==0){
while (tempC==c || tempC==0) {
tempC = (c-5) + arc4random_uniform(((c+5) - (c-5) + 1) + 1)
}
}
if(tempC==c || tempC==0){
while (tempC==c || tempC==0) {
tempC = (c-5) + arc4random_uniform(((c+5) - (c-5) + 1) + 1)
}
}
任何像樣的編譯器應該能夠處理你的代碼,這表示它是比它更復雜需要的話:
((c+5) - (c-5) + 1) + 1
是寫作的一個複雜的方式:
12
嘗試簡化這一點,看看雨燕編譯器可以應付
請你能幫助我。 – Dharmil
如何分解它......其實我沒有得到什麼錯誤說 – Dharmil
最有可能的編譯器有一個問題,你的行在while循環內。嘗試對該行進行註釋或者僅爲其中的「tempC」分配一個常量值。如果它有效,你就知道如何繼續。 –