資源簡(jiǎn)介
計(jì)算機(jī)專業(yè),c++課程設(shè)計(jì)大作業(yè)。該壓縮包內(nèi)有源代碼、課程設(shè)計(jì)文檔。運(yùn)行環(huán)境vc6.0
代碼片段和文件信息
#include
#include
#include
#include
#include
#include?
using?namespace?std;
templateclass?Che{
public:
Che();
void?ShuRuChePai(string);//輸入車牌
void?JinRu(string);//輸入車進(jìn)入停車場(chǎng)的時(shí)間
void?LiKai(string);//輸入車離開(kāi)停車場(chǎng)的時(shí)間
bool?Compare(string);
void?ShuChuM(double);
private:
string?s;//車牌號(hào)記錄
double?st;//車到停車場(chǎng)的時(shí)間
double?et;//車離開(kāi)停車場(chǎng)的時(shí)間
};//車的類
template?Che::Che(){
st=0;
et=0;
}
templatevoid?Che::ShuRuChePai(string?a){
s=a;
}
templatevoid?Che::JinRu(string?y){
int?aabbcc=1;
int?xx=0;
int?i;
double?d;
for(i=0;i<8;i++){
????if(y[i]!=‘:‘)xx=y[i]-‘0‘+10*xx;
???????else{
???if(cc==1)aa=xx;
if(cc==2)bb=xx;
???cc++;xx=0;
???????}
?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????5592??2016-12-28?16:37??停車場(chǎng)管理系統(tǒng)設(shè)計(jì)\停車場(chǎng)管理系統(tǒng)設(shè)計(jì).cpp
?????文件?????401408??2019-05-17?12:47??停車場(chǎng)管理系統(tǒng)設(shè)計(jì)\停車場(chǎng)管理系統(tǒng)設(shè)計(jì).doc
?????目錄??????????0??2019-05-17?12:47??停車場(chǎng)管理系統(tǒng)設(shè)計(jì)
-----------?---------??----------?-----??----
???????????????407000????????????????????3
評(píng)論
共有 條評(píng)論