数组数据类型及多维数组详解
1. 一维数组示例
首先来看一段代码,它展示了一维数组的操作:
PowerOfTwoBytes ThirtyTwoBytes[16];
int changei(int i)
{
return 15 - i;
}
int main( int argc, char **argv )
{
for( i = 0; i < 16; ++i )
{
ThirtyTwoBytes[ changei(i) ].EightBytes = 0.0;
}
// @5:
// push ebx
// call _changei
// pop ecx // Remove parameter
//
// Multiply index (in EAX) by 32.
// Note that (eax << 5) = eax * 32
//
// shl eax,5
//
// Eight bytes of zeros are the coding for
// (double) 0.0:
//
// xor edx,edx
// mov dword ptr [eax+_ThirtyTwoBytes],edx
// mov dword ptr [eax+_ThirtyTwoBytes+4],edx
//
// Finish the
超级会员免费看
订阅专栏 解锁全文
1524

被折叠的 条评论
为什么被折叠?



