shuzuyunsuan
Y6 X9 

所属分类:数据结构
开发工具:DOS
文件大小:5KB
下载次数:1
上传日期:2010-04-14 22:05:51
上 传 者杜宾
说明:  设在内存区域中有数组X和Y。X数组有X1,X2,…,X10;Y数组有Y1,Y2,…,Y10,编程序实现下面的计算: Z1=X1-Y1,Z2=X2+Y2,Z3=X3-Y3,Z4=X4+Y4,Z5=X5+Y5,Z6=X6-Y6,Z7=X7-Y7,Z8=X8+Y8,Z9=X9-Y9,Z10=X10+Y10。计算结果Z存放在数组Z中。 为了便于检查结果,设数组X的内容为db 22,11,22,11,11,22,22,11,22,11,0,0,0,0,0,0存放于ds:0的内存中,为了便于计算,把数组X中的数补足16个;数组Y存放于ds:16开始的16个内存中,内容为11,88,11,88,88,11,11,88,11,88,0,0,0,0,0,0,而数组Z存放于ds:32的内存空间中,且数组值初始化为0。 数组X、Y、Z都是连续存放的!
(Memory regions are located in an array of X and Y. X arrays are X1, X2, ..., X10 Y array with Y1, Y2, ..., Y10, programmed to achieve the following calculation: Z1 = X1-Y1, Z2 = X2+ Y2, Z3 = X3-Y3, Z4 = X4+ Y4, Z5 = X5+ Y5, Z6 = X6-Y6, Z7 = X7-Y7, Z8 = X8+ Y8, Z9 = X9-Y9, Z10 = X10+ Y10. The results stored in an array Z in Z. In order to facilitate the inspection results, set the contents of the array X as db 22,11,22,11,11,22,22,11,22,11,0,0,0,0,0,0 stored in ds: 0 Memory , in order to facilitate the calculation, the number of array X in the complement of 16 array Y stored in the ds: 16 of 16 starting in memory, says 11,88,11,88,88,11,11,88,11, 88,0,0,0,0,0,0, and stored in the array Z ds: 32 of the memory space, and the array value is initialized to 0. Array X, Y, Z are continuous storage!)

文件列表:
数组运算.doc (31232, 2010-04-14)

近期下载者

相关文件


收藏者