討論串[問題] 新手語法if else
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 4→)留言6則,0人參與, 最新作者minazukimaya (水無月真夜)時間16年前 (2009/10/02 01:54), 編輯資訊
0
0
0
內容預覽:
@@. 不相等啊. if( ) {. else {. if( ) {. }. //some statements here. }. 和. if( ) {. else if( ) {. }. // where can you put 'some statements' ?. 上述的例子說明在High
(還有290個字)

推噓0(0推 0噓 5→)留言5則,0人參與, 最新作者h520 (PC)時間16年前 (2009/10/01 23:40), 編輯資訊
0
0
0
內容預覽:
應該是這樣才對吧?. if. {}. else. if{}. else. if{}. else. 其時我都把連續esle if當做switch-case用,最後一個當default. 因為我想雖然語法不同但聰明的compiler做的事情或許一樣吧?. --. 發信站: 批踢踢實業坊(ptt.cc

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者QQ29 (我愛阿蓉)時間16年前 (2009/10/01 20:10), 編輯資訊
0
0
0
內容預覽:
今天trace code. if. {......}. else<=====中斷點設這. {. if(). { ....}. }<==================跳到這. 中斷以後 按下f10 發現他就跳到上面那鍵頭了. 想一想. 難道. else{ if() {}}. 其實跟 else if(
(還有38個字)
首頁
上一頁
1
下一頁
尾頁