看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Linux Ubuntu 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) no 問題(Question): http://i.imgur.com/BNkMnue.jpg 新手發問 請問這該怎麼改 我覺得13行刮號沒錯阿 為何編不過 餵入的資料(Input): 10 20 30 預期的正確結果(Expected Output): They are all different 錯誤結果(Wrong Output): 13行編不過 程式碼(Code):(請善用置底文網頁, 記得排版) 同問題 補充說明(Supplement): 新手發問 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.137.213.175 ※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1419918853.A.877.html
dunkjames: http://i.imgur.com/JHziNvQ.jpg 12/30 13:57
stu87616: if ((a == b) && (b == c)) { } 12/30 14:09
LPH66: if 後面有自己的一組括號, 括號完就接 {} 了 12/30 14:45
LPH66: 你那樣寫 if 自己的括號就沒了, 所以要像二樓這樣寫 12/30 14:45
ACMANIAC: XD 12/30 15:39
uranusjr: 話說為什麼電腦不是 Mac 卻用 clang 但卻不會寫 C 12/30 16:58
issuemylove: 好奇+1 12/30 18:28
tubbysong: 有趣的寫法 12/30 19:35
ahwater01: py寫太多了嗎XD 12/30 23:13
Killercat: 我現在介紹人入門C/C++都叫他們改用clang/lldb了 12/31 14:35
Leeng: 嗯..... 12/31 16:38