CDN加速镜像 | 设为首页 | 加入收藏夹
当前位置: 首页 资源下载 源码下载 数值算法/人工智能 压缩解压

文件名称:ex

  • 所属分类:
  • 标签属性:
  • 上传时间:
    2014-05-29
  • 文件大小:
    1.34kb
  • 已下载:
    0次
  • 提 供 者:
  • 相关连接:
  • 下载说明:
    别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容来自于网络,使用问题请自行百度

  (1)一个包含10个元素的数组,已按升序排序,输入一个任意的整数,将该整数插入数组中,使数组元素仍保持升序排列。

  要求编写一个通用的插入排序函数InsertSort,它带有三个参数,第一个参数是含有n个元素的数组,这n个元素已按升序排序;第二个参数给出当前数组中元素的个数;第三个参数是要插入的整数。该函数的功能是将一个整数插入到数组中,然后进行排序。另外还需要一个用于输出数组元素的函数Print,要求每一行输出5个元素。

   (2)编程求下列两个矩阵的加法(结果矩阵的元素值是这两个矩阵相应元素之和)。要求:定义函数MatAdd用于求矩阵的加法,函数Show用于输出矩阵。

  

   (3)要求设计一个函数void strcpy(char a[],char b[]),将b中的字符串复制到数组a中(要求不使用C++的库函数strcpy())。编写完整的程序并测试。-(1) contains an array of 10 elements have been sorted in ascending order, enter an arbitrary integer, the integer array is inserted so that the array elements remain in ascending order. Requested to prepare a common insertion sort function InsertSort, it takes three parameters, the first parameter contains an array of n elements, which has n elements sorted in ascending order second parameter gives the current number of elements in the array  The third parameter is an integer to be inserted. A function that is inserted into an integer array and then sorted. You also need a function to Print output of array elements, requires that each line of output five elements. (2) for adding the following two programming matrix (matrix element of the result is that the value of the corresponding element of the matrix and two). Requirements: Defined Functions MatAdd for Matrix addition, the function Show for output matrix. (3) requires the design of a function void strcpy (char a [], char b []), c
(系统自动生成,下载前可以参看下载内容)

下载文件列表

ex-5-1.cpp
ex-5-2.cpp
ex-5-3.cpp

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 搜珍网是交换下载平台,只提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。更多...
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或换浏览器;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*快速评论: 推荐 一般 有密码 和说明不符 不是源码或资料 文件不全 不能解压 纯粹是垃圾
*内  容:
*验 证 码:
搜珍网 www.dssz.com