C++语言计算器源代码.docVIP

  • 7
  • 0
  • 约9.89千字
  • 约 14页
  • 2017-12-17 发布于河南
  • 举报
C语言计算器源代码

C++语言编写。。 #includeiostream #includecmath #includestring using namespace std; const double pi = 3 const double e = 2.718281828459; const int SIZE = 1000; typedef struct node//为了处理符号而建立的链表(如: 1+(-2)) { char data; node *next; }node; typedef struct stack_num//存储 数 的栈 { double *top; double *base; }stack_num; typedef struct stack_char//存储 运算符号 的栈 { char *top; char *base; }stack_char; stack_num S_num;//定义 stack_char S_char;//定义 char fu[18] = {\n, ), +, -, *, /, %, ^, Q, L, C, S, T, c, s, t, (}; int compare[1000];//表现出各运算符号的优先级 double shu[1000];//存储 数 的数组 double dai_result;/

文档评论(0)

1亿VIP精品文档

相关文档