摘要: 001、if 结构 002、if else结构 003、if else if elseif else结构 004、条件判断结构 005、switch结构 。 阅读全文
posted @ 2024-07-27 21:46 小鲨鱼2018 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 001、for [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c ## 测试程序,for循环语句 #include <stdio.h> int main(void) { int i; for(i = 1; i <= 5; i++) { pr 阅读全文
posted @ 2024-07-27 13:38 小鲨鱼2018 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 001、 [root@PC1 test]# ls test.c [root@PC1 test]# cat test.c // 测试程序 #include <stdio.h> int main(void) { int i = 10; printf("i1 = %d\n", i); printf("i2 阅读全文
posted @ 2024-07-27 13:37 小鲨鱼2018 阅读(4) 评论(0) 推荐(0) 编辑