http://ceiba.ntu.edu.tw/course/99cf95/hw/Hw5_%20deadline%206_%208.eml
期限:2004-06-08
Write a simple on-line integer calculator.
The input can use parentheses to specify precedence. The input can be negative integers as well.
For example, if users input
-3 *4 – 8+ 3*3
Your program will produce “-11”
For inputs of “ (-3*4))+8-3
Your program will produce “invalid format”
(please refer to “C++ How to Program” P982
17.12 and 17.13 for implementation instructions.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.59.121.131
※ 編輯: phylin 來自: 61.59.121.131 (05/11 20:37)
※ 編輯: phylin 來自: 61.59.121.131 (05/11 20:38)