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

正文內(nèi)容

c模板及應(yīng)用習(xí)題答案-資料下載頁

2025-06-24 18:31本頁面
  

【正文】 0,12,0,5,9,18,6,11,5,3},i,j。 for(i=0。i10。i++){ P1=(a[i])。 (P1)。 } ()。 cout請(qǐng)輸入一個(gè)要求刪除的整數(shù)endl。 cinj。 P1=(j)。 if(P1!=NULL){ P1=(P1)。 delete P1。 ()。 } else cout未找到endl。 cout請(qǐng)輸入一個(gè)要求插入的整數(shù)endl。 cinj。 P1=(j)。 (P1)。 ()。 ()。//清空list1 ()。 return 0。} 為單鏈表類模板增加一個(gè)復(fù)制構(gòu)造函數(shù)和賦值運(yùn)算符(=)。在上題基礎(chǔ)上,List類增加一個(gè)復(fù)制構(gòu)造函數(shù)和賦值運(yùn)算符(=)templatetypename TListT::List(Listamp。 l){ head=new NodeT(9999)。//現(xiàn)建立頭結(jié)點(diǎn) NodeT* tempP=link,*tempC。 while(tempP!=NULL){ tempC=CreatNode(tempPinfo)。 InsertAfter(tempC)。 tempP=tempPlink。 }}templatetypename TListTamp。 ListT::operator=(Listamp。 l){ MakeEmpty()。//先釋放原來鏈表的數(shù)據(jù)結(jié)點(diǎn) NodeT* tempP=link,*tempC。 while(tempP!=NULL){ tempC=CreatNode(tempPinfo)。 InsertAfter(tempC)。 tempP=tempPlink。 } return *this。}int main(){ Nodeint * P1。 Listint list1,list2。 int a[10]={20,12,0,5,9,18,6,11,5,3},i,j。 for(i=0。i10。i++){ P1=(a[i])。 (P1)。 } ()。 cout請(qǐng)輸入一個(gè)要求刪除的整數(shù)endl。 cinj。 P1=(j)。 if(P1!=NULL){ P1=(P1)。 delete P1。 ()。 } else cout未找到endl。 cout請(qǐng)輸入一個(gè)要求插入的整數(shù)endl。 cinj。 P1=(j)。 (P1)。 ()。 list2=list1。 ()。 Listint list3=list1。 ()。 cout請(qǐng)輸入一個(gè)要求刪除的整數(shù)endl。 cinj。 P1=(j)。 if(P1!=NULL){ P1=(P1)。 delete P1。 ()。 } else cout未找到endl。 list2=list3=list1。 ()。 ()。 ()。//清空list1 ()。//清空list1 ()。//清空list1 return 0。
點(diǎn)擊復(fù)制文檔內(nèi)容
化學(xué)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1