#include "seqstack.h"
#include "stdio.h"
#include <conio.h>
char ch;
int ExpEvaluation()/*读入一个简单算术表达式并计算
其值。operatsign和operatdata分别为运算符栈和运算
数栈OPS为运算符集合*/
{
char x,y;
char op;
int a,b,v;
#include "stdio.h"
#include <conio.h>
char ch;
int ExpEvaluation()/*读入一个简单算术表达式并计算
其值。operatsign和operatdata分别为运算符栈和运算
数栈OPS为运算符集合*/
{
char x,y;
char op;
int a,b,v;
nStack operatdata;
strStack operatsign;
nInitStack(&operatdata);
strInitStack(&operatsign);
strPush(&operatsign,'#');
strStack operatsign;
nInitStack(&operatdata);
strInitStack(&operatsign);
strPush(&operatsign,'#');
printf("\nPlease input an expression (Ending with #) :\n");
ch=getchar();
ch=getchar();
strGetTop(&operatsign,&y);
while(ch!='#'||y!='#') /* strGetTop()通过函数值返回栈顶元素*/
{
{