能力值:
( LV2,RANK:10 )
|
-
-
2 楼
函数指针作变量?
|
能力值:
( LV2,RANK:10 )
|
-
-
3 楼
是的啊 是函数指针
|
能力值:
( LV2,RANK:10 )
|
-
-
4 楼
typedef int( *PFUNC)(int , int , int , int , int ) ;
int func1(int a, int b , int c, int d, int e)
{
return a+b+c+d+e;
}
int main(void)
{
PFUNC test
int ret = test(1,2,3,4,5);
return 0;
}
PFUNC test = func2;
00413574 mov dword ptr [ebp-2Ch],offset func2 (4111C2h)
int ret = test(1,2,3,4,5);
0041357B mov esi,esp
0041357D push 5
0041357F push 4
00413581 push 3
00413583 push 2
00413585 push 1
00413587 call dword ptr [ebp-2Ch]
|
能力值:
( LV2,RANK:10 )
|
-
-
5 楼
typedef int( *PFUNC)(int , int , int , int , int ) ;
int func1(int a, int b , int c, int d, int e)
{
return a+b+c+d+e;
}
int main(void)
{
PFUNC test
int ret = test(1,2,3,4,5);
return 0;
}
PFUNC test = func2;
00413574 mov dword ptr [ebp-2Ch],offset func2 (4111C2h)
int ret = test(1,2,3,4,5);
0041357B mov esi,esp
0041357D push 5
0041357F push 4
00413581 push 3
00413583 push 2
00413585 push 1
00413587 call dword ptr [ebp-2Ch]
|
能力值:
( LV2,RANK:10 )
|
-
-
6 楼
大哥,教教我怎么反汇编好吗!
我用的是c32asm
谢谢
|
|
|