博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2023年8月2日

摘要: ```c #include #include // 定义节点结构体 struct node { int data; struct node *next; /* 注意:这行使用了 node, node 必须在这行之前定义 */ }; int main(int argc, const char *arg 阅读全文

posted @ 2023-08-02 20:04 steve.z 阅读(9) 评论(0) 推荐(0) 编辑

摘要: ```c #include #include // 1. 定义一个结构体(先定义结构体再声明变量) struct Student { int no; char *name; char sex; float score; }; // 2. 在定义结构体类型的同时声明结构体变量 struct Teach 阅读全文

posted @ 2023-08-02 11:13 steve.z 阅读(12) 评论(0) 推荐(0) 编辑