注册 登录
编程论坛 程序供求

masm calculator

chensy23 发布于 2014-01-23 04:39, 4220 次点击
要寫一個可以直接輸入運算式的計算機
包含加減乘除的功能
輸入會參雜二進位、八進位、十進位、十六進位
最後以十進位輸出結果
以下是題目的原文
請大家幫忙,關係到能否畢業

p.s.我是用Irvine2010的函式庫以及Visual Studio 2010撰寫執行的

The program should then let the user input the Mathematic Form for calculations.
The operations of Mathematic Form are able to contain
1) adding
2) subtracting
3) multiplying
4) dividing

The operations of Mathematic Form are able to contain
1) binary,
2) octal,
3) decimal
4) hexadecimal

No bracket is considered, but the operations priorities must be in this program.
The program should then display the results in decimal.
For example: -11b + 22o * 33d / 0ah,       22o * -33d  + 0bh / 111b
2 回复
#2
zklhp2014-01-23 10:48
祝您順利完成學業。
#3
fl89622014-01-29 02:22
回复 楼主 chensy23
I think, you should have the ability to finish this easy program if you will graduage in this July. If you do not, then stay in college and keep studying.
1