xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

資源簡介

該軟件有c++語言編寫,實現(xiàn)了對數(shù)學(xué)公式計算。<br>如(45+78)*45-9 等,沒有涉及異常處理

資源截圖

代碼片段和文件信息

#include
#include
#include“exam-4h.h“
using?namespace?std;


Calculation::Calculation(const?string&?exp)
{
expression=exp;
length=exp.length();
turnToTag();
firstExpPtr=NULL;
lastExpPtr=NULL;
}

Calculation::~Calculation()
{
delete?[]tag;

if(firstExpPtr!=NULL)
{
while(firstExpPtr->next!=NULL)
{
????NODE*?temptr;
????temptr=firstExpPtr;
????firstExpPtr=firstExpPtr->next;
????delete?temptr;
}
}
delete?firstExpPtr;
lastExpPtr=NULL;
delete?lastExpPtr;
}

bool?Calculation::examexpression()?????????????//表達(dá)式是否合法;
{
int?i=0;
if(!examBraches()?||?!examDot())???????????????//當(dāng)小數(shù)點位置合法且括號不匹配時
return?false;
while(i {
?if(!nextWord(i))??????????????????????????//當(dāng)當(dāng)前字符與其后的字符不匹配時
?break;?????????????

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????15427??2007-10-08?16:23??計算數(shù)學(xué)公式\exam-4.cpp

?????文件???????2169??2007-10-08?16:23??計算數(shù)學(xué)公式\exam-4h.h

?????文件????????289??2007-10-08?16:23??計算數(shù)學(xué)公式\testExam-4.cpp

?????目錄??????????0??2007-12-16?19:44??計算數(shù)學(xué)公式

-----------?---------??----------?-----??----

????????????????17885????????????????????4


評論

共有 條評論