typedef struct /struct

栗子
沒力女子
Published in
Jun 24, 2021
typedef struct{
int hp, atk, x, y;
}Obj;
typedef struct{
Obj m[1001];
}Mon;
int encounter(Obj *hero, Mon mon)
{
...
mon.m[i].x
hero->x
...
}
typedef struct __ST
{
int al;
int idx;
int in;
}ST;
ST a[max_n];qsort(a,n,sizeof(ST),cmp);struct qwq {
int len;
char str[1010];
} ;
struct qwq a[1010];

--

--