0001 #include <cstdio> 0002 #include <cstdlib> 0003 #include <cstring> 0004 #include <cmath> 0005 0006 #include "stack/stack.h" //ʹջ 0007 #include "priority.h" 0008 0009 __int64 facI ( int n ); 0010 double calcu ( double a, char op, double b ); 0011 double calcu ( char op, double b ); 0012 void displayProgress ( char*, char*, Stack<double>&, Stack<char>&, char* ); 0013 void readNumber ( char*&, Stack<double>& ); 0014 Operator optr2rank ( char ); 0015 char priority ( char, char ); 0016 void append ( char*&, double ); // 0017 void append ( char*&, char ); // 0018 double evaluate ( char* expr, char*& rpn );