精華區beta java 關於我們 聯絡資訊
1. 使用 JEP API 2. 使用 JavaCC ※ 引述《Egist.bbs@bbs.wretch.cc (活著)》之銘言: : 我想做一個數學式子運算的程式 : 在使用者輸入方程式的部份 : 想讓使用者可以輸入類似 " 5a + 2b = 12" or "5*a + 2*b = 12" : 這種字串 : 然後在程式中把這樣子的字串 轉存在陣列中 : 請問有比較好的做法嗎? : 目前只有很粗淺的想到依序的去讀每一個character 然後判斷是數字還是變數 : 是數字就存進陣列裡面 : 此外就是 想要一個一個去拿String裡面的一個字 應該用什麼方法呢?? -- And I don't think that I'll see her again, But we shared a moment that will last till the end. You're beautiful. You're beautiful. You're beautiful, it's true. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.130.197.139
PsMonkey:補一下連結 http://www.singularsys.com/jep/ 10/05 22:25