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.
usb bulk 傳輸例程。
* The bulkusb driver is a generic Function driver, based on the Windows Driver Model (WDM).
* Supports Plug and Play(PnP), Power Management(PM), Windows Management Instrumentation (WMI) and the Selective Suspend (SS) features.
* This sample is based off the selSusp DDK sample. Please refer the selSusp sample and the DDK docs to understand the handling of PnP, PM, WMI and SS features and implementations.
*
The USB device used for this sample is a generic Intel I82930 USB evaluation board programmed with a simple loopback test using a 64 KB circular buffer. None of the code in the sample is specific to this controller chip.
VBS解析_delphi.rar
Function ParseFileDir(a_strFileName)
{
var l_FunNo
var l_BaseDir
var result
l_BaseDir = "D:\\X項目\\"
l_FunNo = a_strFileName.substring(0, 5)
result = l_BaseDir+l_FunNo + \\ +a_strFileName
return result
}
IBM® Rational® Application Developer V6.0 is the full Function Eclipse 3.0 based
development platform for developing Java™ 2 Platform Standard Edition (J2SE)
and Java 2 Platform Enterprise Edition (J2EE) applications with a focus on
applications to be deployed to IBM WebSphere® Application Server and IBM
WebSphere Portal. Rational Application Developer provides integrated
development tools for all development roles, including Web developers, Java
developers, business analysts, architects, and enterprise programmers.
This IBM Redbook is a programming guide that highlights the features and
tooling included with IBM Rational Application Developer V6.0. Many of the
chapters provide working examples that demonstrate how to use the tooling to
develop applications as well as achieve the benefits of visual and rapid Web
development.