- 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 calculation of a digit or character shift)
21 questions
ReadDat function () from the file. IN the DAT read an English article into an array of strings IN the xx, please prepare the function CharConvA (), the function of its function is: to conduct unit of the last character IN the string ASCII value moves to the right after the four last second ASCII value of the characters, the last new characters, the second character of the ASCII value moves to the right and finally the third after four characters of ASCII value, get the second new characters, and so on processing until the second character, the first character of the ASCII value plus the original last ASCII value of the characters, the first new characters, new characters are stored IN the original string corresponding to the position. The last treated string is still restored in the string array xx, and the final call function writeDat () outputs the result xx to the file OUT10. DAT.
The format of the original data file is that the width of each line is less than 80 characters, with punctuation marks and Spaces.
Some source programs have been given.
Do not change main function main () and write function writeDat ().
# include stdio, h
# include string. H
# include conio. H
Char xx [50] [80].
Int maxline = 0; / * the total number of articles * / *
Int ReadDat (void)
Void WriteDat (void)
Void CharConvA ()
{
}
Void main ()
{
CLRSCR ();
If (ReadDat ()) {
Printf ( data file ENG. IN cannot open! \ n \ 007 );
The return;
}
CharConvA ();
WriteDat ();
}
Int ReadDat (void)
{
The FILE * fp.
Int I = 0;
Char * p;
If ((fp = fopen ( IN.dat , r) = = NULL) return 1;
While (the fgets (xx [I], 80, fp)! = NULL) {
P = STRCHR (xx [I], \ n);
If (p) * p = 0;
I++;
}
Maxline = I;
The fclose (fp);
Return 0;
}
Void WriteDat (void)
{
The FILE * fp.
Int I;
Fp = fopen ( OUT10. DAT , w);
For (I = 0; I maxline; i++) {
Printf ( % s \ n , xx [I]);
Fprintf (fp, % s \ n, xx [I]);
}
The fclose (fp);
}
-- -- -- -- -- -- -- --
您可能关注的文档
- 纹身的历史渊源及分类介绍(The history and classification of tattoo).doc
- 稳定物价范文(Stabilize prices).doc
- 稳压管和TVS管的工作原理(The working principle of the pressure regulator tube and the TVS tube).doc
- 稳压管与TVS管的区别(The difference between regulator tube and TVS tube).doc
- 稀土产业呼唤高铁模式(Rare earth industry calls for high-speed rail model).doc
- 稀浆封层施工工艺(Construction technology of slurry seal).doc
- 稀土硬质合金实验应用分析(Experimental analysis of rare earth cemented carbide).doc
- 系列高速成液压夯实机及其应用特点(Series of high speed hydraulic compactor and its application characteristics).doc
- 系解口诀(The Department of the solution formula).doc
- 系统安全防护优化清理(System security, protection, optimization, cleaning).doc
- 实验室危废随意倾倒查处规范.ppt
- 实验室危废废液处理设施规范.ppt
- 实验室危废处置应急管理规范.ppt
- 初中地理中考总复习精品教学课件课堂讲本 基础梳理篇 主题10 中国的地理差异 第20课时 中国的地理差异.ppt
- 初中地理中考总复习精品教学课件课堂讲本 基础梳理篇 主题10 中国的地理差异 第21课时 北方地区.ppt
- 危险废物处置人员防护培训办法.ppt
- 危险废物处置隐患排查技术指南.ppt
- 2026部编版小学数学二年级下册期末综合学业能力测试试卷(3套含答案解析).docx
- 危险废物处置违法案例分析汇编.ppt
- 2026部编版小学数学一年级下册期末综合学业能力测试试卷3套精选(含答案解析).docx
最近下载
- 2024《滋补营养品企业养生堂药业财务报表分析》3600字.docx VIP
- 福建省厦门市2024-2025学年七年级上学期1月期末考试语文试题(含答案).docx VIP
- 2023服装居间合同协议书范本正规范本(通用版).docx
- 第7讲-六年级数学-百分数的应用(思维导图+知识梳理+例题精讲+易错专练)-北师大版.pdf VIP
- 爱之洁津南区餐厨废弃物处理沼气发电项目环评(新版环评)环境影响报告表.pdf VIP
- 急性中毒诊断与治疗中国专家共识.pptx VIP
- 食品企业良好操作规范手册(GMP手册).pdf
- 小学语文生活化教学案例研究:基于课程资源开发论文.docx
- 人教版一年级数学上册期末趣味游园考卷及答案.pdf
- (新版)卫生系统招聘(临床汇总)考试题库(含答案).pdf
原创力文档


文档评论(0)