标准C++算数表达式算法
#include
#include
#include
#include
#include
using namespace std;
string Postfix_Expression;
vector
vector
vector
stack < double, vector
stack < char, vector
stack < double, vector
inline int Priority( char );
void Make_The_Postfix_Stack();
void Calculate_The_Postfix_Stack();
int main(int argc, char * argv[])
{
Make_The_Postfix_Stack();
Calculate_The_Postfix_Stack();
system(\"pause\");
return 0;
}
void Make_The_Postfix_Stack()
{
size_t Index = 0;
string Scrstr;
string Buffer;
string Check(\".0123456789(+-*/)#\");
char Space;
char Char_Temp;
double Double_Temp;
Oper_Stack.push(’#’);