Darren_pty

导航

2022年3月30日 #

11-typedef

摘要: https://www.runoob.com/cprogramming/c-typedef.html #include <stdio.h> #include <string.h> typedef struct Books { char title[50]; char author[50]; char 阅读全文

posted @ 2022-03-30 14:44 Darren_pty 阅读(19) 评论(0) 推荐(0) 编辑

10-枚举

摘要: 枚举: 阅读全文

posted @ 2022-03-30 14:35 Darren_pty 阅读(20) 评论(0) 推荐(0) 编辑

9-共用体

摘要: 共用体: 共用体是一种特殊的数据类型,允许您在相同的内存位置存储不同的数据类型。 您可以定义一个带有多成员的共用体,但是任何时候只能有一个成员带有值。共用体提供了一种使用相同的内存位置的有效方式。 阅读全文

posted @ 2022-03-30 14:30 Darren_pty 阅读(19) 评论(0) 推荐(0) 编辑

8-结构体

摘要: 结构体: 声明并定义: 阅读全文

posted @ 2022-03-30 14:18 Darren_pty 阅读(26) 评论(0) 推荐(0) 编辑

5-数组

摘要: 数组: 二维数组: 字符数组: 阅读全文

posted @ 2022-03-30 11:40 Darren_pty 阅读(8) 评论(0) 推荐(0) 编辑

4-C循环结构

摘要: do... while for 阅读全文

posted @ 2022-03-30 10:54 Darren_pty 阅读(59) 评论(0) 推荐(0) 编辑

3-C选择结构

摘要: 选择结构: 条件选择语句: switch语句: 阅读全文

posted @ 2022-03-30 10:03 Darren_pty 阅读(43) 评论(0) 推荐(0) 编辑

2-C运算符

摘要: 取余运算符: 自增/减运算符: 优先级: 阅读全文

posted @ 2022-03-30 09:59 Darren_pty 阅读(161) 评论(0) 推荐(0) 编辑