- 1、本文档共33页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 前置放大(Preamplifier).doc
- 加压过滤机的技术发展及实践应用(Technical development and practical application of pressure filter).doc
- 剑灵2攻略(The sword of the spirit of 2.).doc
- 加强党员党性修养(Strengthen party members' Party Spirit Cultivation).doc
- 加强基本建设财务管理,有效节约建设资金(We will strengthen financial management of capital construction and effectively save construction funds).doc
- 制作自己的安装版系统(Make your own installation system).doc
- 加强大企业税收管理的探索与思考(Exploration and Reflection on Strengthening Tax Administration of large enterprises).doc
- 加强教师培训机构专业化建设的思考(Thoughts on strengthening the professional construction of teacher training institutions).doc
- 加快网速的一些方法(Some ways to speed up the network).doc
- 加拿大化工产业(Canadian Chemical Industry).doc
- 2025年度关键岗位保密协议范本.docx
- 2025年江西省公务员考试《人文科技常识》必刷100题试卷带解析(培优).docx
- 2025年江苏省《人文科技常识》必刷100题试卷带解析必背【巩固】.docx
- 2025年江西省公务员考试《人文科技常识》必刷100题试卷带解析及完整答案【名校卷】.docx
- 2025年江苏省公务员考试《人文科技常识》必刷100题试卷带解析含完整答案(历年真题).docx
- 2025年江西省《人文科技常识》必刷100题试卷带解析含完整答案【名校卷】.docx
- 2025年江西省公务员考试《人文科技常识》必刷100题试卷带解析附参考答案【突破训练】.docx
- 2025年广东省公务员考试《人文科技常识》必刷100题试卷带解析附参考答案(综合题).docx
- 2025年度办公空间租赁税务筹划合同.docx
- 2025年度互联网产品运营与推广服务合同.docx
最近下载
- 转速耦合混合动力汽车行星减速装置可靠性优化设计与分析.docx VIP
- 2025四川农商银行社会招聘800人笔试备考试题及答案解析.docx
- 2024年江西省鹰潭信江新区公开招聘村(社区)工作者12人公开引进高层次人才和急需紧缺人才笔试参考题库(共500题)答案详解版.docx VIP
- 工程质量创优策划书(中建八局).docx
- YN803D系列多功能数字仪表.doc.docx VIP
- 分布式光伏发电项目报告(28页).pptx
- 工程质量管理考核制度.doc
- 直播电商运营(初级)营销师巨量认证考试题库(附答案).docx
- 2022年研究生类同等学力申请硕士学位教育学学科综合水平考试模拟题10.pdf VIP
- 学校围墙改造项目工程施工组织设计.docx VIP
文档评论(0)