1

About 5 years ago, I managed to convert a pointer to a int, store it temporarily and then take that int and convert it back to a pointer (Objective-C). But I can't for my life remember how I did it.

Can anyone help me out?

4

1 回答 1

-1
int a = (int)p;

类似的东西?但为什么?为什么不直接使用 void*?

于 2013-09-02T16:29:11.963 回答