用静态栈数据结构实现表达式求值[10]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 fxsjy 的 blog

            default:priority='e';

        }

        return priority;

}

//处理表达式的主体函数

void process(numstack &numstack,opstack &opstack,char x){

    double a,b;char c;

    static double tempnum=0.00000000;static int len=10;static int dot=0,flags=0;

    if(isdigit(x) || x=='.'){

        if(x=='.')dot=1;

        else{

            if(dot==0)

本文关键:用静态栈数据结构实现表达式求值
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top