C语言 ---- typedef

#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;
}

点赞