- 1、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
数据结构实验一答案(Data structure experiment one answer) [problem description] Linear table is a typical linear structure, the realization of ADT List, and on this basis to achieve the two sets of delivery, arithmetic or parallel operations. [experimental purposes] (1) grasp two storage structures of linear table, which are sequential table and linked list. (2) master the basic operation of the sequential table and single linked list. (3) in order to master the basic operation of the sequential table and single linked list, the implementation of comprehensive questions. [contents and requirements] (1) the elements of a collection are defined as decimal numbers. (2) enter any of the two sets of elements at will. (3) display the contents of two sets and their operation results. (4) requires the realization of linked list. [test data] (1) set1={3, 5, 8, 11}, set2={2, 6, 8, 9,, 11, 15, 20} Set1, set2 =? Set1 set2 =? (2) set1={9, 3, 14, 6}, set2={1, 30, 3, 7, 14,, 25, 6, 19, 3, 9} Set1, set2 =? Set1 set2=? #include iostream Using namespace std; Class List; The definition of class ListNode / node class { Friend class List; / / statement for the friends of the staff Private: Double data; ListNode *link; Public: (ListNode): link (NULL) {} ListNode (const double item): data (item), link (NULL) {} }; The definition of a single list of List / / class {private: ListNode, *first, *current; Public: List () {first=current=new ListNode;} ~List () {MakeEmpty (); delete first;} Void, MakeEmpty (); ListNode, *Firster () {current=first; return first;} Int Find (double value); Int append (double value); Int (Remove); / / delete the current element Double (First); / / take the current pointer to the first element Double (Next); / / returns the next element of the current element Void, print (); ListNode *getNode (double, item, ListNode, *next); Void Union (List LA, List LB); / / the Union Void intersection (List LA, List LB); / / take the intersection }; ListNode *List:: getNode (double, item, Li
您可能关注的文档
- 7 给水排水(7 water supply and drainage).doc
- 7 地形图测绘(7 topographic mapping).doc
- 7.4《流体压强与流速的关系》说课稿(7.4 the relation between fluid pressure and velocity).doc
- 7.3使用燃料对环境的影响(7.3 environmental impact of the use of fuel).doc
- 7a单词(7A word).doc
- 7侧翼理论(7 flank theory).doc
- 7难忘的旅行 普通话资料(7 unforgettable travel Mandarin).doc
- 7要素构建企业生态文明(7 factors, construction of enterprise ecological civilization).doc
- 7月31日 探索人类本质(Explore human nature in July 31st).doc
- 8元5g流量教程(8 yuan 5g traffic tutorial).doc
- 数据结构图的建立与计算(Establishment and calculation of data structure diagram).doc
- 数据结构习题与答案(Data structure exercises and answers).doc
- 数据结构-停车场程序(Data structure - parking procedures).doc
- 数据结构与算法常用英语词汇(Data structures and algorithms commonly used in English Vocabulary).doc
- 数据结构与网络游戏(Data structures and online games).doc
- 数据结构中串的各种算法(Data structure string of various algorithms).doc
- 数据流程与业务流程的区别(The difference between a data process and a business process).doc
- 数据结构专科辅导八(Data structure tutorial eight).doc
- 数控火焰等离子切割机(Numerical control flame plasma cutting machine).doc
- 数控切割机编程实例(An example of NC cutting machine programming).doc
最近下载
- 想象与真实:网络玄幻小说《诡秘之主》的空间叙事研究.pdf VIP
- GB 1499.2-2024 钢筋混凝土用钢 第2部分:热轧带肋钢筋.pdf VIP
- 2024~2025学年10月山东青岛城阳区青岛实验高中高一上学期月考数学试卷(详解版).pdf VIP
- 《中国重症肌无力诊断和治疗指南(2025版)》解读PPT课件.pptx VIP
- 国庆双节小区物业安全温馨提示.doc VIP
- 《强制性条文实施计划》.docx VIP
- 长春易加科技-数字化互联化智能工厂解决方案.pdf VIP
- 23CJ87-1 采光、通风、消防排烟天窗(一)参考图集.docx VIP
- 车辆GPS动态监控管理制度完整.doc VIP
- 2-2《TIPS操作手册(公共代码管理子系统)》.pdf
文档评论(0)