#include <stdio.h>
typedef struct Student
{
int sid;
char name[100];
char sex;
} *PSTU,STU; //*PSTU == struct Student *; STU == struct Student
int main(void)
{
STU st;
PSTU ps = &st;
ps->sid = 88;
printf("%d\n",st.sid);
return 0;
}
C语言 ---- typedef
最新推荐文章于 2023-06-02 16:42:04 发布