【计算机类职业资格】三级信息管理技术机试-19及答案解析.doc

上传人:confusegate185 文档编号:1320675 上传时间:2019-10-17 格式:DOC 页数:2 大小:25KB
下载 相关 举报
【计算机类职业资格】三级信息管理技术机试-19及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】三级信息管理技术机试-19及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、三级信息管理技术机试-19 及答案解析(总分:100.00,做题时间:90 分钟)一、上机题(总题数:1,分数:100.00)1.fctose(fp);(分数:100.00)_三级信息管理技术机试-19 答案解析(总分:100.00,做题时间:90 分钟)一、上机题(总题数:1,分数:100.00)1.fctose(fp);(分数:100.00)_正确答案:(void SortDat()int i,j;PRO xy;for(i=0;i99;i+)for(j=i+1;j100;j+)if (strcmp(selli.dm,sellj.dm)0) /*按产品代码从小到大进行排列*/xy=selli

2、;selli=sellj;sellj=xy;else if (strcmp(selli.dm,sellj.dm)=0) /*若产品代码相同*/if (selli.jesellj.je) /*则按金额从大到小进行排列*/xy=selli;selli=sellj;sellj=xy;)解析:解析 本题考查的知识点如下:(1) 结构体及结构数组的相关操作。(2) 结构数组的捧序,(3) 字符型数组的比较。本题着重考查结构体变量的访问、赋值,包括结构体本身及结构体中各个成员的访问和赋值结构数组的操作与一般敷组的区别不大,只要注意其中的元素是结构体,以及对结构体操作的方法根据题意要求,我们首先要比较产品代码。因为产品代码为字符型,所以不能使用简单的比较运算符进行比较。在这里,我们使用了字符串处理函数 sircmp(char *strll,char *strl2,unsigned int cout)其进行比较。对于比较结果,还要按情况进行新的操作存入结构数组或者再进行比较。因为已定义了结构数组,就可以使用循环进行比较捧序。排序采用前面介绍的“选择排序法”。

展开阅读全文
相关资源
猜你喜欢
  • CNS 14649-2-2003 Information technology - Universal multiple-Octet coded character set (UCS) -Part 2  Supplementary planes《信息技术-广用多八位编码字符集(UCS)-第2部:辅助字面》.pdf CNS 14649-2-2003 Information technology - Universal multiple-Octet coded character set (UCS) -Part 2 Supplementary planes《信息技术-广用多八位编码字符集(UCS)-第2部:辅助字面》.pdf
  • CNS 14650-2002 Bar code symbol ─Code128 basic specification《流通条形码─128基本规范》.pdf CNS 14650-2002 Bar code symbol ─Code128 basic specification《流通条形码─128基本规范》.pdf
  • CNS 14651-2008 Glossary of terms used for fire protection in building - General terms for phenomena of fire《建筑物防火词汇-一般火灾现象用语》.pdf CNS 14651-2008 Glossary of terms used for fire protection in building - General terms for phenomena of fire《建筑物防火词汇-一般火灾现象用语》.pdf
  • CNS 14652-2008 Glossary of terms used for fire protection in building - Fire test《建筑物防火词汇-防火试验用语》.pdf CNS 14652-2008 Glossary of terms used for fire protection in building - Fire test《建筑物防火词汇-防火试验用语》.pdf
  • CNS 14653-2002 Acoustics - Determination of sound power levels of noise sources - Guidelines for the use of basic standards《声学─噪声源声功率位准测定─使用基本标准的指引》.pdf CNS 14653-2002 Acoustics - Determination of sound power levels of noise sources - Guidelines for the use of basic standards《声学─噪声源声功率位准测定─使用基本标准的指引》.pdf
  • CNS 14654-2002 Acoustics - Determination of sound power levels of noise sources using sound pressure - Precision methods for reverberation rooms《声学─利用声压测定噪声源声功率位准─回响室的精密级方法》.pdf CNS 14654-2002 Acoustics - Determination of sound power levels of noise sources using sound pressure - Precision methods for reverberation rooms《声学─利用声压测定噪声源声功率位准─回响室的精密级方法》.pdf
  • CNS 14655-1-2002 Acoustics - Determination of sound power levels of noise sources - Engineering methods for small movable sources in reverberant fields - Part1 Comparison method fo.pdf CNS 14655-1-2002 Acoustics - Determination of sound power levels of noise sources - Engineering methods for small movable sources in reverberant fields - Part1 Comparison method fo.pdf
  • CNS 14655-2-2002 Acoustics - Determination of sound power levels of noise sources using sound pressure - Engineering methods for small movable sources in reverberant fields - Part2.pdf CNS 14655-2-2002 Acoustics - Determination of sound power levels of noise sources using sound pressure - Engineering methods for small movable sources in reverberant fields - Part2.pdf
  • CNS 14656-2002 Acoustics - Determination of sound power levels of noise sources using sound pressure - Engineering method in an essentially free field over a reflecting plane《声学─测定.pdf CNS 14656-2002 Acoustics - Determination of sound power levels of noise sources using sound pressure - Engineering method in an essentially free field over a reflecting plane《声学─测定.pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1