强悍的C++程序实现计算器的linux源程序(国外英文资料).doc

强悍的C++程序实现计算器的linux源程序(国外英文资料).doc

  1. 1、本文档共33页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
强悍的C程序实现计算器的linux源程序(国外英文资料)

强悍的C++程序实现计算器的linux源程序(国外英文资料) ? / create time: 2013-06-03 13:40:19 # include iostream # include sstream # include iomanip # include unistd. H # include stdlib. H # include string. H # include stdio, h # include string # include algorithm H # include math.h # include stack # define SHOW 1 / / f: y - NT  h 埦? _ # define UNSHOW 0 / / N f: y - NT  h 埦? _ / / # define TOSHOW 0  6 r/fT f: y purchase 汵 h 埦? _ Using namespace STD. / / 梴 / gh 埦? _ Yue bravely UO 靣 藌 钀 R bravely? U {| 媁 / / the S_ (uN * Ndouble {| 媁 penc 刧 愽 e Quan h? Yh 埦? _ pency bravely? / / S_ (uN * NcharW [ {eg 刧 愽 eh? Yh 埦? _ bravely {鱏? Y +, -, *, /, ^) / / 鍕 {| bXTpriorityh?  yOHQ , pency nirvana vOHQ  - 1 (ueg: SR/f / / pency 権? F {鱏 y? {鱏 y? OHQ 嶯 0 鱏 袕 梴 Quan OHQ 詋 儚 The class CalculType { Public: Char c; Int priority; Double val. Public: CalculType (double dn); CalculType char (CV); Friend ostream operator (ostream o, CalculType ct); CalculType operator = (CalculType ct); }; / / NZZH bravely! JHr Nang PE The template typename T The stack T st. / / f: yh-ncq}! JHr Nang PE The template typename T Stack T st); The template typename T / /  OX - NCQ} P 廭 interpretation 轛 Nang bravely and PE Stack T (stack T st); / / $R 璭 / fT/f 袕 梴 h 埦? Who is that? / / 闟 gW [ {: 0 ~ 9, +, - and *, /, %, ^, . / / / who bravely and h 埦 fT? _ N. Bool valid (char c); / / $R 璭 搹 eQ/fT _ 薡 h 埦 bravely? _ NNy bravely? Int change (char oc, char nc); / / 穬 biting -n  h 埦? 8 ^ _, sSb 霳 (u bravely and pef [梴 / gh 埦? _ / / 搹 eQ 曪 Qiang 忁 VzzW [ {2 n String getMidExpression (); / / 穬 biting N * Npef [梴 / gh 埦? _ bravely and P Double getExpressionVal (string strExp); / / Duo N * N - N  h 埦? _hl 廱 cbT  h 埦? _h Stack CalculType getLatExpr (stack CalculType SCT); / / $N * NpeKN 魰 袕 bravely 梴 Double optration (double num1, char opt, double num2); / /  梴 N * NT  h 埦? _ P bravely Double getExprVal (stack CalculType sLatExpr); Int main (int argc, char * argv []) { Strin

您可能关注的文档

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档