typedef的用法 代码描述 # include<stdio.h> typedef struct Student { int score; int age; }* PSTU, STU ; // PSTU等价于struct Student * 类型; STU等价于struct Student 类型 int main(void) { STU st; PSTU ps = &st; ps -> score = 99; ps -> age = 21; printf("st.score = %d, st.age = %d\n", st.score, st.age); return 0; }