摘要: 001、 #include <stdio.h> int test(int n) // 定义函数 { if(n > 0) { return n * test(n - 1); // 调用函数自身, 终止条件是n = 0 } else { return 1; } } int main(void) { in 阅读全文
posted @ 2022-08-19 00:56 小鲨鱼2018 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 001、 #include <stdio.h> enum set01 {aaa, bbb, ccc, ddd}; // 表示一定整数值的集合的枚举类型。0, 1, 2, 3 int main(void) { printf("aaa: %d\n", aaa); printf("bbb: %d\n", 阅读全文
posted @ 2022-08-19 00:20 小鲨鱼2018 阅读(23) 评论(0) 推荐(0) 编辑