討論串[問題] c語言程式求助
共 70 篇文章

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者csihcs (非天夜翔)時間16年前 (2009/10/13 15:03), 編輯資訊
0
0
1
內容預覽:
應觀眾要求~~來個java版的~~. import javax.swing.JOptionPane;. public class 我不會用C只好用JAVA {. public static void main(String[] argv) {. float kg = Float.parseFloat
(還有30個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者saxontai (黑暗,點綴孤零零的星)時間16年前 (2009/10/13 14:59), 編輯資訊
0
0
1
內容預覽:
AutoIt v3 ( http://www.autoitscript.com/autoit3/ ). $input = InputBox("", "請輸入體重:", ""). $weight = Number($input) / 0.454. MsgBox(0, "", "你的體重是 " & $i

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者wenjoseph (wenjoseph)時間16年前 (2009/10/13 14:59), 編輯資訊
0
0
0
內容預覽:
Haskell. getDouble :: IO Double. getDouble. = do. line <- getLine. return ( read line :: Double ). main. = do. x <- getDouble. putStr "Pond: ". print

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者cooper6334 (小恐龍)時間16年前 (2009/10/13 14:58), 編輯資訊
0
0
0
內容預覽:
組語來了,不過我亂寫一通,用不大精準的方式寫浮點運算. 我承認我組語也沒學好........... TITLE. INCLUDE Irvine32.inc. .data. msg1 BYTE "輸入體重(整數)",0. msg2 BYTE "你的體重是",0. msg3 BYTE "公斤,等於",0
(還有466個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者dendrobium (石斛蘭)時間16年前 (2009/10/13 14:57), 編輯資訊
0
0
0
內容預覽:
Ruby:. print ( "Weight is " + '%.3f'%(weight=gets.chomp.to_f).to_s + " kg, or " \. + '%.3f'%(weight.to_f/0.454).to_s + " pound.\n" ). 寫的很糟XD, 不過還是控制在一