第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

int one = 10 ; int two = 20 ; int three = 0 ;為什么three=one+two

int one = 10 ;

? ? ? ? int two = 20 ;

? ? ? ? int three = 0 ;其中這個(gè)three的值不是0嗎,怎么能three=one+two?


? ? ? ??

正在回答

2 回答

one two three 都是變量,而=只是一個(gè)賦值運(yùn)算符,只是暫時(shí)的給他們一個(gè)值,后面可以隨意變化的,在編程語(yǔ)言中==才是不變的量。

2 回復(fù) 有任何疑惑可以回復(fù)我~
#1

lionbuild 提問(wèn)者

非常感謝!
2015-12-30 回復(fù) 有任何疑惑可以回復(fù)我~
#2

lionbuild 提問(wèn)者

意思就是three之前0賦值在three=one=two后就賦值成30了?那three的賦值在這一段代碼里的賦值不存在前后不一致的問(wèn)題嗎
2015-12-30 回復(fù) 有任何疑惑可以回復(fù)我~

==與=不要混淆,判斷是否相等是==

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

lionbuild 提問(wèn)者

謝謝!
2015-12-30 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

int one = 10 ; int two = 20 ; int three = 0 ;為什么three=one+two

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)