英语翻译
WriteaCprogramthatdoessimilartasks–askstheusertoenteritemsuntiltheuserchoosestostop,storesthemintolistnodes,andchainsthenodestogetherintoalinkedlist.Youwillneedtomakethefollowing:
•YourlinkedlistshouldstoreinformationaboutCustomers’Transactionsthatcontainthreefields:customername(string),customernumber(int),andtransactiondescription(string).
•Insteadofputtingallofyourcodeinsidethemainsourcecodefile,youshouldcreatethefollowingfunctions:
oaddToStart()
oaddToEnd()
oprintList()
oremoveNodeAt()
•Insteadofsimplyaskingtheuseriftheywanttoaddanewnode,yourmainprogramshouldoffertheuseramenuofoptions:
oAddanewnodetotheend
oAddanewnodetothebeginning
oPrintouttheentirelist
oRemoveanodefromthelist
oQuittheprogram
邮箱: 联系方式: