資源簡介
實現(xiàn) 、-、*、/、%、<、>、=、<>、<=、>=
詳細信息查看如下地址:
http://blog.csdn.net/welliu/archive/2011/04/13/6320562.aspx
代碼片段和文件信息
/********************************************
?*?
?*?http://blog.csdn.net/welliu
?*?
?*?Email:lgjwell@gmail.com
?*?
?*?QQ:147620454
?*?
?*******************************************/
using?System;
using?System.Collections.Generic;
using?System.Text;
namespace?expressionCalculator
{
????///?
????///?表達式計算器
????///?
????public?class?Calculator
????{
????????public?Calculator()
????????????:?this(““)
????????{?}
????????public?Calculator(string?expression)
????????{
????????????_expression?=?expression;
????????}
????????private?string?_expression?=?string.Empty;
????????private?link_OP?_link_OP?=?null;
????????private?Evaluator?_eval?=?new?Evaluator();
????????#region?獲取分詞
????????///?
????????///?獲取后綴分詞
????????///?
????????public?List?PostfixWords
????????{
????????????get
????????????{
????????????????Analyze();
????????????????SyntaxAnalyzer?a?=?new?SyntaxAnalyzer();
????????????????return
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????19968??2011-04-13?13:35??ex
?????文件??????48640??2011-04-13?13:35??ex
?????文件???????4290??2011-04-13?13:34??ex
?????文件???????7246??2011-04-13?13:32??ex
?????文件???????2780??2011-04-13?13:33??ex
?????文件??????14443??2011-04-13?13:33??ex
?????文件???????2381??2011-04-11?22:54??ex
?????文件????????451??2011-04-11?23:01??ex
?????文件??????19968??2011-04-13?13:35??ex
?????文件??????48640??2011-04-13?13:35??ex
?????文件??????12062??2011-04-13?13:32??ex
?????文件???????1382??2011-04-11?16:23??ex
?????文件??????17367??2011-04-13?13:32??ex
?????文件???????5035??2011-04-13?13:30??ex
?????文件????????950??2011-04-11?16:23??ex
????..A..H.?????11776??2011-05-22?20:00??ex
?????文件??????19968??2011-04-13?13:35??ex
?????文件??????48640??2011-04-13?13:35??ex
?????文件??????12800??2011-04-13?14:24??ex
?????文件??????28160??2011-04-13?14:24??ex
?????文件??????14328??2011-04-14?14:28??ex
?????文件????????490??2007-07-21?01:33??ex
?????文件???????3652??2011-04-12?12:03??ex
?????文件???????2566??2011-04-13?14:24??ex
?????文件??????10303??2011-04-13?14:24??ex
?????文件???????5814??2011-04-13?14:24??ex
?????文件???????1069??2011-04-14?14:28??ex
?????文件????????847??2011-04-13?14:24??ex
?????文件??????12800??2011-04-13?14:24??ex
?????文件????????180??2011-04-13?14:24??ex
............此處省略31個文件信息
- 上一篇:基于瑞薩單片機的觸摸按鍵驅動
- 下一篇:簡單工廠設計模式之計算器練習
評論
共有 條評論