資源簡介
正則文法的自動機程序
代碼片段和文件信息
#include?“expression.h“
#include?
#include?
#include?
#include?
#define?PRECISION?0.0000001
using?namespace?std;
expression::expression(?const?string&?exp?)
{
szExp?=?exp;
Format();
bValid?=?false;
}
const?char*?expression::GetErrMsg(?int?value?)
{
static?const?char*?const?ErrMsg[]?=?{
//errors?when?analysing
“none?error.“
“illegal?character.“ //x
“unmatched?bracket.“ //(
“illegal?combination.“ //?**
“unexpected?end?of?expression.“//3+
“none?expression?exist.“ //?““
//errors?when?executing
“data?overflow.“
“divided?by?zero.“
};
return?ErrMsg[value];
}
#ifndef?RECURSION_DOWN
bool?expression::Check(?Error*?pErr?/*=?NULL*/?)
{
int?pos?=?0;
int?bracket?=?0;
ErrType?err;
er
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????110592??2009-06-03?14:33??實驗\ex
?????文件???????9728??2009-04-25?18:03??實驗\ex
?????文件???????3171??2009-06-02?20:16??實驗\ex
?????文件????????920??2009-06-03?14:33??實驗\ex
?????文件???????3509??2009-04-25?18:03??實驗\ex
?????文件????????531??2009-04-25?18:03??實驗\ex
?????文件??????14772??2009-06-02?20:25??實驗\Regex2FA\GraphFA.cpp
?????文件???????1866??2009-06-02?20:10??實驗\Regex2FA\GraphFA.h
?????文件???????3715??2009-04-16?23:46??實驗\Regex2FA\MainFrm.cpp
?????文件???????1712??2009-04-16?05:58??實驗\Regex2FA\MainFrm.h
?????文件???????4359??2009-04-15?18:09??實驗\Regex2FA\ReadMe.txt
?????文件??????42864??2009-06-02?20:36??實驗\Regex2FA\Regex2FA.aps
?????文件???????2438??2009-06-02?20:36??實驗\Regex2FA\Regex2FA.clw
?????文件???????4150??2009-04-15?18:09??實驗\Regex2FA\Regex2FA.cpp
?????文件???????5042??2009-04-16?06:27??實驗\Regex2FA\Regex2FA.dsp
?????文件????????541??2009-04-15?18:09??實驗\Regex2FA\Regex2FA.dsw
?????文件???????1378??2009-04-15?18:09??實驗\Regex2FA\Regex2FA.h
?????文件??????56832??2009-07-14?12:30??實驗\Regex2FA\Regex2FA.opt
?????文件???????3599??2009-04-16?11:20??實驗\Regex2FA\Regex2FA.plg
?????文件??????11115??2009-06-02?20:36??實驗\Regex2FA\Regex2FA.rc
?????文件????????881??2009-04-16?22:47??實驗\Regex2FA\Regex2FA.sln
????..A..H.?????20992??2009-08-22?10:01??實驗\Regex2FA\Regex2FA.suo
?????文件???????9833??2009-04-16?22:47??實驗\Regex2FA\Regex2FA.vcproj
?????文件???????1413??2009-08-22?10:01??實驗\Regex2FA\Regex2FA.vcproj.ZHANG_PC.Administrator.user
?????文件???????5423??2009-06-02?19:54??實驗\Regex2FA\Regex2FADoc.cpp
?????文件???????1729??2009-04-16?10:32??實驗\Regex2FA\Regex2FADoc.h
?????文件???????4616??2009-04-16?11:00??實驗\Regex2FA\Regex2FAView.cpp
?????文件???????2077??2009-06-02?20:31??實驗\Regex2FA\Regex2FAView.h
?????文件????????766??2009-04-16?02:58??實驗\Regex2FA\res\icon1.ico
?????文件????????766??2008-10-21?12:28??實驗\Regex2FA\res\Regex2FA.ico
............此處省略58個文件信息
評論
共有 條評論