ImageVerifierCode 换一换
格式:DOC , 页数:5 ,大小:21.50KB ,
资源ID:3816489      下载积分:6 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/3816489.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(我爱新浪微博讲课讲稿.doc)为本站上传会员【丰****】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

我爱新浪微博讲课讲稿.doc

1、 我爱新浪微博 精品资料 实验4 数组 本次实验将练习数组的用法。完成一个程序,该程序要求用户输入整数,并按照输入顺序记录进一个数组。当用户输入-1时标识结束输入结束。程序将记录的数组的顺序进行反序,即原数组第一个数与最后一个数进行交换,依此类推。反序后的数组进行输出在屏幕上。最后对数组进行从小到大排序,并输出排序结果。程序的一次运行结果如下。你可以运行作业材料中附带的已经完成的array.exe程序来了解更多的该程序的输入和输出要求。 Enter numbers, one per line, ending with the sentinel value -1 T

2、he program will then display those values in reverse order and sorted order. ? 9 ? 3 ? 7 ? 9 9 is already in the array. Please input again ? 3 3 is already in the array. Please input again ? 1 ? 2 ? 6 ? 19 ? -1 The reverse array is as follows: 19 6 2 1 7 3 9 The sorted arra

3、y is as follows: 1 2 3 6 7 9 19 作业提示: 1. 该程序的主程序和常量定义已经在作业材料的array.cpp中给出,你不能进行改变。 2. 程序中需要完成的函数的功能和使用方法如下,你可以增添新的函数,但是你必须在主程序中正确地写出这些函数的原型并实现这些函数的功能。 /* * Function: GetIntegerArray * Usage: n = GetIntegerArray(array, max, sentinel); * -------------------------------------------------

4、 * This function reads elements into an integer array by * reading values, one per line, from the keyboard. The end * of the input data is indicated by the parameter sentinel. * The caller is responsible for declaring the array and * passing it as a parameter, along with its allocated * s

5、ize. The value returned is the number of elements * actually entered and therefore gives the effective size * of the array, which is typically less than the allocated * size given by max. If the user types in more than max * elements, GetIntegerArray generates an error. */ /* * Func

6、tion: PrintIntegerArray * Usage: PrintIntegerArray(array, n); * ----------------------------------- * This function displays the first n values in array, * one per line, on the console. */ /* * Function: ReverseIntegerArray * Usage: ReverseIntegerArray(array, n); * ---------------

7、 * This function reverses the elements of array, which has n as * its effective size. The procedure operates by going through * the first half of the array and swapping each element with * its counterpart at the end of the array. */ /* * Function: SwapIntegerEle

8、ments * Usage: SwapIntegerElements(array, p1, p2); * ------------------------------------------ * This function swaps the elements in array at index * positions p1 and p2. */ /* * Function: GiveInstructions * Usage: GiveInstructions(); * -------------------------- * This functio

9、n gives instructions for the array reversal program. */ /* * Function: SortIntegerArray * -------------------------- * This implementation uses an algorithm called selection sort, * which can be described in English as follows. With your left * hand, point at each element in the arra

10、y in turn, starting at * index 0. At each step in the cycle: * * (1) Find the smallest element in the range between your left * hand and the end of the array, and point at that element * with your right hand. * * (2) Move that element into its correct index position by *

11、 switching the elements indicated by your left and right * hands. */ /* * Function: FindSmallestInteger * Usage: index = FindSmallestInteger(array, low, high); * ----------------------------------------------------- * This function returns the index of the smallest value in

12、the * specified array of integers, searching only between the index * positions low and high, inclusive. It operates by keeping track * of the index of the smallest so far in the variable spos. If the * index range is empty, the function returns low. */ /* * Function: SearchArray

13、 Usage: bool = SearchArray(array, n, value); * ----------------------------------------------------- * This function search the specified array of integers. If value is in the specified array * then return ture, otherwise return false. */ 3. 函数SortIntegerArray要求采用选择排序法对数组进行排序,这是一种简单的排序算法。你可以在学习了课本7.8节的插值排序算法后完成选择排序算法,并比较它们的不同。选择排序算法的具体算法在函数说明里有详细描述。 4. 函数SearchArray是对数组元素进行查找,你可以采用课本第7章7.7节中学到的简单的线性查找算法来实现。对于一个已经排序的数组你可以考虑用更好的搜索算法来实现该函数。阅读课本第20章获得对于排序和搜索算法的更多知识。 仅供学习与交流,如有侵权请联系网站删除 谢谢5

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2026 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服