结构体 tpyedef
typedef char TElemType;typedef TElemType SqBiTree[MAX_TREE_SIZE];
求解释一下第二句....
#include <stdio.h> #define SIZE 10 typedef int elemtype; typedef elemtype Type[SIZE]; int main() { int i; elemtype a = 5; //定义整形变量 a,赋值为 5 Type b = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; //定义数组b,值为 1-10 printf("%d\n", a); for (i = 0;i < SIZE;++i) { printf("%d ", b[i]); } printf("\n"); return 0; }