如何用指针移动取出一个结构体的全部成员

2025-03-01 04:39:37
推荐回答(1个)
回答1:

score scr;
int *p=(int*)&scr;
int a,b,c;
a=*p;
p++;
b=*p;
p++;
c=*p;