网站大量收购独家精品文档,联系QQ:2885784924

南开计算机等级考试上机100题育龙网(Nankai Computer Rank Examination on a 100 question).doc

南开计算机等级考试上机100题育龙网(Nankai Computer Rank Examination on a 100 question).doc

  1. 1、本文档共33页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
南开计算机等级考试上机100题育龙网(Nankai Computer Rank Examination on a 100 question)

南开计算机等级考试上机100题育龙网(Nankai Computer Rank Examination on a 100 question) Nankai Computer Rank Examination on a 100 question Core tip: Nankai Computer Rank Examination on 100 questions of 1. function ReadDat () to read a English article from the file ENG.IN, credited to the string array XX; (encryptChar), please prepare the function according to the given substitution for all characters in the XX array for generations, is still in the position corresponding to the array XX finally, the function call WriteDat (XX) the results output to a file in PS10.DAT. Alternative: F (P) =p*11 mod 256 (P is a character array in ASCII, f (P) is a new character of the ASCII value calculation), if the original character of the ASCII value is even or calculated after f (P) value is less than or equal to 32, then the character unchanged, otherwise it will be f (P) replaced by the corresponding characters. Some source programs have been given. The format of the original data file is: the width of each row is less than 80 characters. Do not change the contents of the main function main (), the read data function ReadDat (), and the output data function WriteDat (). #include #include #include #include Unsigned char xx[50][80]; Int maxline=0; the total number of articles / * Int ReadDat (void) Void WriteDat (void) Void, encryptChar () {int, I, j; Char *p; For (i=0; i=axx[j]=0p=Ap=0xx[j]=Axx[j]=ap130) ; Else xx[j]=p;} 11. function ReadDat () to achieve from the file in.dat read 20 rows of data stored in the string array XX (line string length is less than 80). Please prepare the function jsSort (), its function is: per string according to the given conditions of the sort, sort the results according to the bank to re deposit the string array XX, the last call to WriteDat (XX) the results output to a file in out.dat. Condition: split from the middle of the string, the left part is sorted in ascending order by the ASCII value of the character, and the left part of the sort is exchanged with the r

您可能关注的文档

文档评论(0)

jgx3536 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:6111134150000003

1亿VIP精品文档

相关文档