吉林大学软件学院卓班数据结构上机和实验代码

上传者: sjzdwk | 上传时间: 2021-05-30 16:26:49 | 文件大小: 21KB | 文件类型: RAR
吉林大学软件学院卓班数据结构上机和实验代码 共七次 第一次实例:单链表实现 class Node{ public: int data; }; class List{ Node *list; int size; public: List(){size=0;list=new Node[maxsize];} ~List(){delete []list;} void creates(int M); void inserts(int k,int x); int getk(int k); void deletek(int k); int finds(int x); void outputs(); }; void List::creates(int M) { for(int i=0;i>list[i].data; size=M; } void List::inserts(int k,int x) { for(int i=size;i>=k;i--) list[i]=list[i-1]; list[k].data=x; size++; }

文件下载

资源详情

[{"title":"( 16 个子文件 21KB ) 吉林大学软件学院卓班数据结构上机和实验代码","children":[{"title":"test1","children":[{"title":"seqlist","children":[{"title":"seqlist.cpp <span style='color:#111;'> 2.43KB </span>","children":null,"spread":false}],"spread":true},{"title":"expr","children":[{"title":"expr.cpp <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test7","children":[{"title":"road","children":[{"title":"road.cpp <span style='color:#111;'> 990B </span>","children":null,"spread":false}],"spread":true},{"title":"meeting","children":[{"title":"meeting.cpp <span style='color:#111;'> 1.55KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test3","children":[{"title":"step","children":[{"title":"step.cpp <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false}],"spread":true},{"title":"sort","children":[{"title":"sort.cpp <span style='color:#111;'> 918B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test2","children":[{"title":"sllist","children":[{"title":"sllist.cpp <span style='color:#111;'> 8.28KB </span>","children":null,"spread":false}],"spread":true},{"title":"queue","children":[{"title":"queue.cpp <span style='color:#111;'> 3.60KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test4","children":[{"title":"GeneralTree","children":[{"title":"GeneralTree.cpp <span style='color:#111;'> 5.79KB </span>","children":null,"spread":false}],"spread":true},{"title":"huffman","children":[{"title":"huffman.cpp <span style='color:#111;'> 6.62KB </span>","children":null,"spread":false},{"title":"huffman.h <span style='color:#111;'> 3.55KB </span>","children":null,"spread":false}],"spread":true},{"title":"BinaryTree","children":[{"title":"BinaryTree.cpp <span style='color:#111;'> 7.18KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test5","children":[{"title":"btwid","children":[{"title":"btwid.cpp <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false}],"spread":true},{"title":"pearl","children":[{"title":"pearl.cpp <span style='color:#111;'> 798B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test6","children":[{"title":"GraphList","children":[{"title":"GraphList.cpp <span style='color:#111;'> 10.73KB </span>","children":null,"spread":false}],"spread":true},{"title":"GraphMatrix","children":[{"title":"GraphMatrix.cpp <span style='color:#111;'> 7.14KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明