问题
填空题
在一个按行优先顺序存储的二维数组(M×N)中,假设数组的基地址是P,并且数组的每一个元素所占的存储空间为d个字节,则a[ij的地址计算公式为______。
答案
参考答案:LOC(a[ij)=P+[i×N+j]×d
在一个按行优先顺序存储的二维数组(M×N)中,假设数组的基地址是P,并且数组的每一个元素所占的存储空间为d个字节,则a[ij的地址计算公式为______。
参考答案:LOC(a[ij)=P+[i×N+j]×d
完型填空。 | |||
Americans think much about time. From children they 1 to value(珍惜)time. As children they are taught to be on time 2 to school, to work and to do everything. When they are having a good time, they 3 that time flies. When a person is dying(生命垂危),they say he is living on 4 time .Time is money. Time is 5 in America. A working American has to work hard for eight hours a day or forty hours 6 . This is the working time. In his free time, he also works hard 7 more money. Even on Saturday and Sunday he also works hard as usual. In the street you can 8 see that a man walks slowly. They walk very fast. In fact, they are running. They love 9 because time can bring them money and a lot of things . But sometimes they also 10 time,because they feel that they have become servants(仆人)of the clock. | |||
( )1. A. teach ( )2. A. going ( )3. A. say ( )4. A. lent ( )5. A something ( )6. A a day ( )7. A for ( )8. A nearly ( )9. A money ( )10. A hate | B. earn B. go B. tell B. borrow B. anything B. a week B. on B. hardly B. work B. love | C. work C. to go C. ask C. lend C. everything C. a month C. with C. almost C. time C. feel | D. play D. went D. speak D. borrowed D. nothing D. an hour D. at D. always D. knowledge D. like |