- 博客(5)
- 收藏
- 关注
原创 c语言动态创建链表,以及链表结点的删除验证代码如下
#include <stdio.h> #include <string.h> #include <malloc.h> #define len sizeof(struct student) struct student { int xh; float score; struct student *next; } ; struct student *head; void creat(); void del(int x); void pr(struct student *a
2022-01-12 21:59:34
209
原创 switch for 循环 c语言入门笔记,看不懂过来挨打
c++知识点: alt+f8快捷键程序自动排列。 switch循环语句如下: int n; scanf("%d",&n); printf(“输入数字:”) switch(n) { case1:printf(“周一”); break; case2:printf(“周二”); break; …… default:printf(); } 循环语句goto语句为无条件转移语句使用方式如下: goto 语句标号;/goto语句不常用因为容易使程序混乱且不易读,但是跳出多层嵌套的时候可以适当使用/ 标号指:在程
2022-01-12 00:58:56
853
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
1