[問題] 比較數字相同否

作者: dunkjames (Firefighter)   2014-12-30 13:54:11
開發平台(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):
新手發問
作者: dunkjames (Firefighter)   2014-12-30 13:57:00
作者: stu87616 (文組工程師)   2014-12-30 14:09:00
if ((a == b) && (b == c)) { }
作者: LPH66 (-6.2598534e+18f)   2014-12-30 14:45:00
if 後面有自己的一組括號, 括號完就接 {} 了你那樣寫 if 自己的括號就沒了, 所以要像二樓這樣寫
作者: ACMANIAC (請肥宅救救肥宅)   2014-12-30 15:39:00
XD
作者: uranusjr (←這人是超級笨蛋)   2014-12-30 16:58:00
話說為什麼電腦不是 Mac 卻用 clang 但卻不會寫 C
作者: issuemylove (NotLove)   2014-12-30 18:28:00
好奇+1
作者: tubbysong (song)   2014-12-30 19:35:00
有趣的寫法
作者: ahwater01 (臭酸咖)   2014-12-30 23:13:00
py寫太多了嗎XD
作者: Killercat (殺人貓™)   2014-12-31 14:35:00
我現在介紹人入門C/C++都叫他們改用clang/lldb了
作者: Leeng (Leeng)   2014-12-31 16:38:00
嗯.....

Links booklink

Contact Us: admin [ a t ] ucptt.com