作者webberhan (taiWANg 亚洲首胜)
看板java
标题Re: 数学式子的问题
时间Thu Oct 5 17:45:57 2006
1. 使用 JEP API
2. 使用 JavaCC
※ 引述《[email protected] (活着)》之铭言:
: 我想做一个数学式子运算的程式
: 在使用者输入方程式的部份
: 想让使用者可以输入类似 " 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