- 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 answer) Problem analysis and algorithm design First, a data structure is designed to represent an extra long integer, and then the algorithm can be designed. First, we use a header node with a ring chain to represent a non negative integer large, if for each number from the beginning is low, first to fourth, fifth to eighth... Each consisting of four bit numbers, followed on the list of the first and second nodes,... In the lack of MSB 4 stored in the last node list in the specified header node for -1 value. Such as: The big integer 587890987654321 can be represented by the following list of linked nodes head: In accordance with this data structure, you can start from the two header nodes, in turn corresponding to add, to find the required carrying descendants into the following operations. Specific implementation algorithm, please see the notes in the program. * program and program notes #includestdio.h #includestdlib.h #define HUNTHOU 10000 Typedef, struct, node{, int, data; Struct node *next; }NODE; / * * / define the list structure NODE *insert_after (NODE *u, int Num); / * insert a new NODE in the U node, its value is num*/ NODE *addint (NODE *p, NODE *q); / * complete addition operator returns a pointer to pointer * / *p+*q results Void printint (NODE *s); NODE *inputint (void); Void, main () { NODE, *s1, *s2, *s; NODE, *inputint (), *addint (), *insert_after (); Printf (Enter S1=); (s1=inputint); / * * / input addend Printf (Enter S2=); (s2=inputint); / * * / input addend Printf (S1=); printint (S1); putchar (\\\n\); / * * / display addend Printf (S2=); printint (S2); putchar (\\\n\); / * * / display number S=addint (S1, S2); / * and * / Printf (S1+S2=); printint (s); putchar (\\\n\); / * * / output } NODE *insert_after (NODE, *u, int, Num) { NODE *v; V= (NODE * malloc) (sizeof (NODE)); / * for a NODE*/ V-data=num; / * * / assignment U-next=v; / * insert a NODE*/ in the U node Return v; } NODE *addint (NODE *p, NODE *q) / * complete addi
您可能关注的文档
- 5-3常见的酸--硫酸(5-3 common sulfuric acid - sulfuric acid).doc
- 5s管理法则(5S management rules).doc
- 5s检查100条050720(5S check 100 050720).doc
- 5定价策略(5 pricing strategy).doc
- 5年网编经验第一次晒简历(5 years of experience in network editing first sun resume).doc
- 5种家装防水吊顶面板的特点(5 types of home improvement waterproof ceiling panels features).doc
- 006_地狱观(006_ hell view).doc
- 5种中草药水提取液对灵芝三萜含量的影响(Effects of 5 extracts of Chinese herbal medicine on the content of three terpene in Ganoderma lucidum).doc
- 6.1 模板(6.1 templates).doc
- 06全口带入及问题(06 full mouth intake and problems).doc
最近下载
- 2025+CSCO淋巴瘤诊疗指南解读 (3)PPT课件.pptx VIP
- 中国高尿酸血症与痛风诊疗指南(2024年).pptx VIP
- 英剧剧本神探夏洛克台词本中英文对照精排版第一季第一集.pdf VIP
- 2025CSCO淋巴瘤诊疗指南解读PPT课件.pptx VIP
- 2025年特种钢项目商业计划书.docx
- 大学生活委员竞选.pptx VIP
- 小学新起点英语1至6年级词汇表 (2).docx VIP
- 注册跨境电商平台步骤.docx VIP
- 初中数学北京版八年级上册第十章 分式二 分式的运算及其应用10.4 分式的加减法-章节测试习题(1).doc VIP
- 3000TA微量氧分析仪操作手册.pdf VIP
文档评论(0)