#include
using namespace std;
#pragma pack(4)
#define f(a,b,tmp) \
tmp=a;\
a=b;\
b=tmp;\
struct my_type
{
int p;
int q;
short s;
};
int main( )
{
int aa=1,ba=2,tmpa;
f(aa,ba,tmpa);//可以实现交换
printf("%d %d %d",aa,ba,tmpa);
return 0;
}
阅读(895) | 评论(0) | 转发(0) |