- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
英文文章变换(The English transform)
英文文章变换(The English transform)
4. function ReadDat () function is to read a English article from the ENG4.IN file, stored in the string array in xx. Please prepare the function encryptChar (), according to the given substitution for all characters in the XX array of alternatives, results are stored in the array XX corresponding to the location, the last call to WriteDat (XX) the results output to a file in PS4.DAT.
Alternative: F (P) =p*11 mod 256 (P is an array of characters in XX ASCII, f (P) is a new character of the ASCII value calculation, if the calculated) f (P) is less than or equal to 32 or greater than 130, then the character unchanged, otherwise it will be f (P replaced by the corresponding characters).
Void (encryptChar)
{
Int i, j;
Int str;
Char ch;
For (i=0; imaxline; i++)
{
Str=strlen (xx[i]);
For (j=0; jstr; j++)
{
Ch=xx[i][j] *11%256;
If (ch=32 ch130 ||)
Continue;
Else
Xx[i][j]=ch;
}
}
}
5. function ReadDat () function is to read a English article from the file IN5.DAT in the string array in xx. Please prepare the function ConvertCharA (), the function is: per rewrite all lowercase letters in the string into the letter the next letter, if the letter Z, is to rewrite the letter A. Capital letters are uppercase letters, lowercase letters are in lowercase letters, and other characters remain unchanged. The string has been treated according to the bank to re deposit the string array XX, the last call to WriteDat (XX) the results output to a file in OUT5.DAT.
Void ConvertCharA (void)
{
Int i, j;
Int str;
For (i=0; imaxline; i++)
{
Str=strlen (xx[i]);
For (j=0; jstr; j++)
If (xx[i][j]=aand xx[i][j]=z)
If (xx[i][j]==z)
Xx[i][j]=a;
Else
Xx[i][j]+=1;
}
}
7 function ReadDat () function is to read a English article from the file IN7.DAT in the string array in xx. Please prepare the function SortCharD (), the function is: per character of the sequence of sorting, sorting the results according to the bank to re deposit the string array XX, the last call to WriteD
您可能关注的文档
- 省二级题库旧题库判断题(135题)(Two grade exam questions to determine the problem of old (135 questions)).doc
- 看求攻略稿件(Look for the Raiders manuscript).doc
- 真空电镀及工艺流程(Vacuum plating and process).doc
- 真菌形态的几种观察方法(The observation method of several fungi morphology).doc
- 着眼长远,给自己的人生定个目标(Focus on the long term, to their own life set a goal).doc
- 瞬变二极管(tvs).doc
- 知识型企业的优势与管理挑战(The advantages and challenges of knowledge-based enterprise management).doc
- 知识学堂linux系统ip路由基础理论(School of knowledge Linux IP routing system theory).doc
- 知识经济视角下的人力资本产权探析(Analysis of human capital property rights perspective of knowledge economy).doc
- 矛与盾的构想(Concept of spear and shield).doc
- 苏教版三年级下数学补充习题答案(Jiangsu under the third grade mathematics Supplementary Exercises answer).doc
- 英特尔第四季度收入 97 亿美元(Intel's fourth quarter revenue of $9 billion 700 million).doc
- 英语单词 高三(下)(High school English words (below)).doc
- 英语口语6种技巧(6 kinds of oral English skills).doc
- 英语口语学习的方法技巧(Methods and skills of spoken English learning).doc
- 英语口语角(English corner).doc
- 英语口语学习方法技巧(Oral English learning skills).doc
- 英语四级听力技巧及例题精析(Four English listening skills and examples of analysis).doc
- 英语改错例题(English example error).doc
- 英语复习资料(期中)(English (period)).doc
最近下载
- 不锈钢管道安装施工与方案.doc VIP
- 喜茶运营管理手册和员工操作管理手册.doc VIP
- 施工总包合同.docx VIP
- 土木专业英国规范NA to BS EN 1991-1-4_2005+A1_2010.pdf VIP
- 软件风险管理计划.docx VIP
- 2024年秋季人教版7年级上册数学全册教学课件(新教材).pptx
- 中山市八年级下期末考试数学试题(有答案)-精品 .pdf VIP
- Module10 Unit 2 Don’t shout please!(教案)外研版(三起)英语五年级上册1.docx VIP
- 顶格筹码峰与平均成本双线合一选股公式.docx VIP
- Module 10 Unit 2 Don’t shout, please! (教案)外研版(三起)英语五年级上册1.docx VIP
文档评论(0)