ARM下 Implement matrix multiplication of 2 square matrices, with data read from an input file and printed both to the console and to an output file. • Assume a file with correct data (No garbage, characters, etc.). • you must check and provide appropriate execution for 2 extra cases, namely when the matrix size given is either “0” , or when the size is greater than the maximum handled of “5” . In these 2 cases you must implement the following behaviour: o If size = 0, then print a message “Size = 0 is unacceptable” and continue by reading the next size for the next 2 matrices (if Not end of file). o If size >5, then print two messages: “Size is too big - unacceptable”. Then read and discard the next (size2 ) integers and continue by reading the next size for the next 2 matrices (if Not end of file).
标签: multiplication Implement matrices matrix
上传时间: 2014-08-30
上传用户:dsgkjgkjg
数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in aNother base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or Not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are No leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "No" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes No yes No
上传时间: 2015-05-21
上传用户:daguda
* Function: * 1. Replace the first oldstr with newstr in srcstr * Arguments: * IN : * srcstr * oldstr * newstr * OUT : * srcstr * Return: * 1. If find and replace one oldstr with newstr in srcstr , return 1 * 2. If find No oldstr in srcstr , return 0 * 3. If error (malloc return NULL) return -1 * Notes: * 1. srcstr should be large size eNough.
标签: Arguments Function Replace oldstr
上传时间: 2014-12-20
上传用户:Yukiseop
程序接收键入的一个关键字和一个句子,若句子中不包含关键字,则显示‘No MATCH’;若句子包含关键字则显示‘MATCH’,并把该关键字在句子中的位置用十六进制数显示出来。程序以输入CTRL+C退出
上传时间: 2015-06-09
上传用户:qazxsw
一个游戏 the hardware for the game includes a number of displays, each with a button and -- a light, that each represent a bin that can store marbles (beans). -- -- The display indicates the number of marbles in each bin at any given time. -- The light indecates that the present bin is Not empty and that pushing the -- button is a valid move in the game. -- -- The button for each display indicates that a player takes the marbles from -- the selected bin, and takes them in his hand. The hand is represented by a -- diplay itself (No button). -- -- Each player has a home bin, located on opposite sides of the game.
标签: the hardware displays includes
上传时间: 2015-06-10
上传用户:cc1015285075
Due to an increase in demand for and questions about direct disk access for Micrososft platforms, and due to the fact that Microsoft has No API for direct disk access, I am releasing this library much earlier than I intended at that start. I am still working on this code.
标签: Micrososft for questions platforms
上传时间: 2014-01-26
上传用户:xaijhqx
此软件包包含了模拟I2C C51程序软件包和ZLG7290的C51程序然后包。 软件包的接口界面: (1) bit ISendByte(uchar sla,uchar c) (无子地址)写单字节数据 (现行地址写) (2) bit IRcvByte(uchar sla,uchar *c) (无子地址)读单字节数据 (现行地址读) (3) bit ISendStr(uchar sla,uchar suba,uchar *s,uchar No)(有子地址)读N字节数据 (4) bit IRcvStr(uchar sla,uchar suba,uchar *s,uchar No) (有子地址)写N字节数据 (5) bit ISendStr(uchar sla,uchar *s,uchar No) (无子地址)写多字节数据 (6) bit IRcvStr(uchar sla,uchar *s,uchar No) (无子地址)读单字节数据 (7) unsigned char ZLG7290_SendData(unsigned char SubAdd,unsigned char Data) (8) void ZLG7290_SendBuf(unsigned char * disp_buf,unsigned char num) (9) unsigned char ZLG7290_SendCmd(unsigned char Data1,unsigned char Data2) (10)unsigned char ZLG7290_GetKey()
上传时间: 2013-12-05
上传用户:hongmo
红外线遥控器读码软件,显示红外线波型,读取并保存码 IR Remote Control Unit Code Read System 产品详细描述: 能够像显示器一样显示红外线码的波型 可以读多达150种格式的红外线码 显示红外线码的时间非常准确,误差只有几个微秒。 具有错误检测功能 保存红外线码功能 自动识别码的格式 比较样机与所写的新软件的遥控器码的异同 具体情况请访问本网站:http://www.crzman.com/IR_Reader.htm Display the Infrared wave on the software like oscillograph. Can read more than 150 kinds of infrared code format Display the Infrared time and the tolerance No more than many us. Have error detect function Save Infrared code function Auto identify code s format Compare the code from sample and new Remote Control Unit code) Detail instance please visit address: http://www.crzman.com/IR_Reader.htm
上传时间: 2015-07-03
上传用户:ccclll
加密算法 Test Driver for Crypto++, a C++ Class Library of Cryptographic Primitives: - To generate an RSA key cryptest g - To encrypt and decrypt a string using RSA cryptest r - To calculate MD5, SHS, and RIPEMD-160 message digests: cryptest m file - To encrypt and decrypt a string using DES-EDE in CBC mode: cryptest t - To encrypt or decrypt a file cryptest e|d input output - To share a file into shadows: cryptest s <pieces> <pieces-needed> file (make sure file has No extension, if you re running this under DOS) - To reconstruct a file from shadows: cryptest j output file1 file2 [....] - To gzip a file: cryptest z <compression-level> input output - To gunzip a file: cryptest u input output - To run validation tests: cryptest v - To run benchmarks: cryptest b [time for each benchmark in seconds]
标签: Cryptographic Primitives generate Library
上传时间: 2015-07-16
上传用户:wqxstar
空时正交编码源程序,参考文献: V.Tarokh,H. Jafarkhani,and A. R. Calderbank "Space-Time Codes from %Orthogonal Designs",IEEE Trans. Inform. Theory VOL. 45,No. 5,JULY 1
上传时间: 2013-12-26
上传用户:fandeshun