当前位置:三九宝宝网 → 宝宝百科 → 宝宝知识 → 正文

2006年9月23日计算机等级考试二级C上机试题1

更新:10-30 整理:39baobao.com
字体:

[职称英语等级考试模拟题理工类AB级]第1部分 词汇 选择(第1-15题,每题1分,共15分,建议10分钟以内完成)下面共有15句子,每个句子均有一个词或短语划有底横线,请从每个句子后面所给的四个选项中选择一个与划线部分意义...+阅读

已知数据文件IN.DAT中存有200个两位数且相邻的两个数之间均不相等,并已调用函数readDat()把这些数存入数组b中,请考生编制一个函数jsVal(),实现的功能是对经常上下波动的数据可采用只记录峰值的数据压缩方法,即每次将采样到的当前值和前一次值比较,如数据变化方向改变(原递增现递减或原递减现递增),说明已过峰值,这时就将当前值记录下来,接着将结果依次存入数据b中(从0开始存放),注意数组b中的第一个数据a[0]原样存入b[0]单元中。

后调用输出函数writeDat()把结果c输出到文件OUT.DAT中。例如:原数据: 35,69,87,73,62,54,60,70, 压缩后: 35,73,60, 注意:部分源程序存在文件PROG1.C文件中。 程序中已定义:a[200]、b[200]。请勿改动数据文件IN.DAT中的任何数据、主函数main()、读函数readDat()和写函数writeDat的内容。

本文地址:https://www.39baobao.com/show/39_14379.html

以上内容来自互联网,请自行判断内容的正确性。若本站收录的信息无意侵犯了贵司版权,请联系我们,我们会及时处理和回复,谢谢.

以下为关联文档:

职称英语等级考试模拟题综合类AB级第1部分 词汇 选择(第1-15题,每题1分,共15分,建议10分钟以内完成)下面共有15句子,每个句子均有一个词或短语划有底横线,请从每个句子后面所给的四个选项中选择一个与划线部分意义...

2009年度全国职称外语等级考试用书目录书 名 单价(元) 订数(册) 全国专业技术人员职称英语等级考试大纲 20 全国专业技术人员职称日语等级考试大纲 18 全国专业技术人员职称俄语等级考试大纲 11 全国专业技术人员职称...

全国职称外语等级考试综合类概括大意7PASSAGE 14  Earthquake Every year earthquakes are responsible for a large number of deaths and a vest amount of destruction in various parts of the world. Mos...

全国职称外语等级考试综合类概括大意2PASSAGE 3  Science Fiction Amongst the most popular books being written today are those which are usually classified as science fiction. Hundreds of titles ar...

全国职称外语等级考试综合类概括大意3PASSAGE 5  Recreation and Sports “All work and no play makes Jack a dull boy” is a popular saying in the United States. Other countries he similar sayings....

全国职称外语等级考试综合类概括大意6PASSAGE 12  Adult Education Voluntary learning in anized courses by mature men and women is called adult education. Such education is offered to make people a...

全国职称外语等级考试综合类概括大意4PASSAGE 8  Radio and Television There are few homes in Britain today that do not he either a radio or television set. Both of them he bee an essential part of...

全国职称英语等级考试阅读题Passage 2 Football is, I believe, the most popular game in England: one has only to go to one of the important matches to see this. Rich and poor, young and old...

全国职称外语等级考试综合类概括大意1PASSAGE 1  Successful Language Learners Some people seem to he a knack for learning languages. They can pick up new vocabulary, master rules or grammar, and lea...