freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

列車時刻查詢系統(tǒng)設(shè)計--c課程設(shè)計報告-wenkub

2023-04-07 05:29:01 本頁面
 

【正文】 cinx。 bool quit = false。//顯示所有信息void Save()。/*菜單顯示*/void Creat()。 ~Dtrain(){}}。 ~Ztrain(){}}。 int SelectPlace(char Place1[],char Place2[])。 char *GetEo()。 ~Train(){} Train amp。 Time starTime。}。Train)+~Train()+ operator =( l: const Train amp。iii) 能完成時刻表的輸入、查詢、保存等功能利用鏈表模板存儲信息,調(diào)用函數(shù)對鏈表進(jìn)行處理完成輸入、查詢等功能。利用文件的來實現(xiàn)列車信息的長久存儲,將信息存儲到磁盤上。): Train amp。class Train{private: char trainNum[10]。public: Train(){} Train(char Num[],char Eo[],char Te[], Time Ti)。 operator =(const Train amp。 char *GetTe()。 void Show()。class Ttrain:virtual public Train{public: Ttrain(){} Ttrain(char Num[],char Eo[],char Te[], Time Ti)。class Ktrain: public Train{public: Ktrain(){} Ktrain(char Num[],char Eo[],char Te[], Time Ti)。/*建立字符串工具箱*/ void SerchAsPlace()。//將鏈表信息保存到文件中void Open()。 ()。 switch(x) { case 39。 Creat()。b39。 break。 SerchAsNum()。d39。 break。 Save()。f39。 } //system(cls)。 coutb、按始發(fā)站終點站查詢信息\n。 coutf、退出\n。 char str1[10]。 Time y1。 cout請輸入車次:。 =hour。 cout請輸入終點站:。 } else if(n==2) { Dtrain t(str1,str2,str3,y1)。 } else if(n==4) { Ktrain t(str1,str2,str3,y1)。 cout是否想繼續(xù)輸入:,,否。}void SerchAsPlace(){ char str2[20],str3[20]。 cinstr2。 while(!()) { p=()。 system(pause)。 cout請輸入車次:。 pos=(str1)。}void Display(){ Train p。 ()。 Node (const T amp。 NodeT * NextNode()const。}templateclass Tvoid NodeT::InsertAfter(NodeT *p){ pnext=next。 next=tempPtrnext。 int size。 void FreeNode(NodeT * p)。 LinkedList(const LinkedListT amp。 operator=(const LinkedListT amp。 void Reset(int pos=0)。 void InsertFront(const Tamp。 void InsertAt(const Tamp。 T DeleteFront()。 void ClearList(void)。 p = new NodeT(item,ptrnext)。}templateclass Tvoid LinkedListT::FreeNode(NodeT *p){ delete p。 //將L中的每一個元素插入到當(dāng)前鏈表最后 while (p != NULL) { InsertRear(pdata)。 currPtr = head。 currPtr = currPtrNextNode()。 position=0。 size = 0。 currPosition = head。 // 移動到下一結(jié)點 } head = tail = NULL。}templateclass TLinkedListT:: ~LinkedList(){ ClearList()。L) //不能將鏈表賦值給它自身 return *this。}templateclass Tint LinkedListT::ListSize()const{ return size。 // 如果鏈表為空,返回 if (head == NULL) return。 currPtr = head。 startPos = 1。 currPtr = currPtrNextNode()。 }}templateclass Tint LinkedListT::EndOfList()const{ if(currPtr==NULL) return 1。item){ // 如果鏈表不空則調(diào)用Reset if (head != NULL
點擊復(fù)制文檔內(nèi)容
范文總結(jié)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1