⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 handle_opt.h

📁 在linux/UNIX上
💻 H
字号:
/**handle_opt.h*		provide some interface for handle the * / + - ^ ( );*AUTHOR:liyangth@gmail.com*VERSION:1.0;*DATE:2006-8-9;*/#ifndef HANDLE_OPT_H#define HANDLE_OPT_H#include <string.h>#include <stdlib.h>#include <stdio.h>#include <math.h>#include "stack.h"/*claimed in main.c*/extern stack_s oprand_stack;extern stack_s operator_stack;/*define the operator's PRI*OPERATOR:    (		^	*	+-	)*PRI:	   	  8		6	4	2	1*@PARAM:a operator;*@RETURN:the operator's PRI;*DATE:2006-8-8;*/int operator_pri(char operator);/*handle the operator '(' */void handle_left_b(char operator);/*handle the operator '^' */void handle_pow(char operator);/*handle the operator '*' and '/' */void handle_multi(char operator);/*handle the '+'and '-'*/void handle_add_and_sub(char operator);/*handle the ')' ; *	when we meet ')', we handle the stack until meet '(';*/void handle_right_b(char operator);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -