全文预览

面向对象程序设计习题讲解

上传者:叶子黄了 |  格式:pdf  |  页数:45 |  大小:4050KB

文档介绍
name,name)!=0)\r(\rprevious=curr_node;\rcurr_node=curr_node->next;\r1\rif(curr_node!=0&&previous==0)\r(\rroot=curr_node->next;\rdeletecurr_node;\r}\relseif(curr_node!=0&&previous!=0)\rprevious->next=curr_node->next;EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rdeletecurr_node;\r}\r)\rvoidList::print_list()\r(\rperson*cur=root;\rwhile(cur!=0)\r(\rcur->print();\rcur=cur->next;\r}\r)\rperson*person::ptr=0;\rintperson::count=0;\rvoidmainO{\rListpeopIe;\rstudent\rstu("liuying",20,"shanghai","03578395-145",3,80);\rstudent\rtea("chenling",23,"shangdong","03456688",4,90);\rpeopIe.insert_person(&stu);\rpeopIe.insert_person(&tea);EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rpeopIe.print_Iist();\rpeopIe.remove("Iiuying");\rpeopIe.print_Iist();\r)\r|h2:ÌÍ|h1,K0ÎÏÐ|8.6P

收藏

分享

举报
下载此文档