- 博客(2)
- 收藏
- 关注
原创 typedef struct用法的一个特性
一般在用typedef struct时会这样:typedef struct TestStruct{int Test;}TestStruct;这里其实有两个操作:1. 定义了一个TestStruct结构体类型2. 将struct TestStruct这个结构体变量定义重命名为TestStruct因此可以有两种等效的办法定义TestStruct的结构体变量:1. TestStruct testStruct1;2. struct TestStruct testStruct2;为什么两种都是等效的?...
2022-06-14 10:24:11 101 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人