1) Write a function reverse(A) which takes a matrix A of arbitrary dimensions as input and returns a matrix B consisting of the columns of A in reverse order. Thus for example, if A = 1 2 3 then B = 3 2 1 4 5 6 6 5 4 7 8 9 9 8 7 Write a main program to call reverse(A) for the matrix A = magic(5). Print to the screen both A and reverse(A). 2) Write a program which accepts an input k from the keyboard, and which prints out the smallest fibonacci number that is at least as large as k. The program should also print out its position in the fibonacci sequence. Here is a sample of input and output: Enter k>0: 100 144 is the smallest fibonacci number greater than or equal to 100. It is the 12th fibonacci number.
标签: dimensions arbitrary function reverse
上传时间: 2016-04-16
上传用户:waitingfy
动态生成 3维 动画饼图 非常漂亮 例子 里已经有详细的介绍 sa[0][1]=85 sa[1][1]= 2 sa[2][0]= http://www.baidu.com // 第一列 数量,js 会根据数量 自动分配比例 //第二列 数量代表的意义 //第三列 是点击列表选项的链接 css 样式 不能去除
上传时间: 2016-04-17
上传用户:Andy123456
MPEG-4播放技术 (1)源代码可在VC 6.0或.NET下调试。 (2)调试前需要安装Microsoft DirectX 9.0。
标签: Microsoft DirectX MPEG 6.0
上传时间: 2013-12-24
上传用户:shizhanincc
VPP程序设计 第1章 绪论 第2章 数据类型和表达式 第3章 控制语句 第4章 函数 第5章 数组 第6章 指针 第7章 结构体与共用体 第8章 类和对象 第9章 运算符重载
上传时间: 2016-04-20
上传用户:a3318966
QTP全名Quick Test Professional,是MI公司出品的一款测试工具.它的优点是使用方便,功能强大并且可以通过与测试管理工具的互连达到自动化功能测试的目的. QTP是专门针对B/S模式的测试工具.它具有:识别能力强,回放精确等优点,是进行B/S模式下功能测试的首选工具
标签: Professional QTP Quick Test
上传时间: 2016-04-21
上传用户:tyler
用java编写的标准化考试系统 (B/S网络版)
上传时间: 2013-12-18
上传用户:qoovoop
用java编写的 图书查询系统 (B/S网络版)
上传时间: 2013-12-18
上传用户:三人用菜
该系统是一个B/S结构的公司定饭系统,整套软件由JSP编制,希望大家能够多提宝贵意见,但请不要将它应用于商业环境,如实在要使用的话,请与作者联系!(使用此系统无比要有ORACLE8i以上版本数据库!)
上传时间: 2014-10-14
上传用户:Shaikh
超市进销存管理系统 学生学籍管理系统 1、把源代码解压到适当的目录下(教材讲到的目录)。 2、1-9章 打开对应章节例子代码复制到命令窗口,或建立一个命令文件(.prg文件)即可调试运行。 3、10-12章 需要复制到教材讲到的目录或新建目录。 4、13-15章 按教材讲到的内容操作
上传时间: 2013-12-02
上传用户:youlongjian0
B/S结构邮件系统的源码,该代码基本实现了收发邮件的功能
上传时间: 2013-12-23
上传用户:851197153