| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 778 人关注过本帖
标题:[求助]需要用C++做一个类似calculator的程式
只看楼主 加入收藏
小女子
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-3-7
收藏
 问题点数:0 回复次数:2 
[求助]需要用C++做一个类似calculator的程式

刚刚开学,老师就要我们用C++做一个类似计算机( calculator ) 的程式。

You are required to write a program to implement the EXPRESSION EVALUATION problem above using an appropriate data structure. Your program must include the functionalities to enable the user to evaluate any expression with the following minimum assumptions


* Operands may be negative
* Operators must include (^, %, *, /, +, -,)
* Test for division by zero
* Parenthesis Checking
* Allow Sin, Cos and Tan values

我是新手,对C++或其它语言不是很行。请大家可以帮帮忙,教教我需要注意什么,或是怎样做这个程式。谢谢!

搜索更多相关主题的帖子: calculator 程式 计算机 Parenthesis 
2006-03-07 23:38
ElfDN
Rank: 4
等 级:贵宾
威 望:11
帖 子:291
专家分:0
注 册:2005-11-13
收藏
得分:0 

不限制大小的话还是比较容易的题目,C++标准库里提供了所有需要的函数


2006-03-07 23:47
小女子
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2006-3-7
收藏
得分:0 
能不能多说一些提示呢?我刚刚才接触C++,就连基本的都不会。而老师给我们功课,要我们在3星期内做一个类似calculator program 的程式。我很担心到时叫不出答案......
2006-03-08 00:05
快速回复:[求助]需要用C++做一个类似calculator的程式
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011032 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved