笔记
虚晃c
主学c语言
展开
-
两种数和字符串转化的方法
原创 2022-01-18 09:04:19 · 135 阅读 · 0 评论 -
逻辑运算符优先级,这把既写程序也较高低
程序 结果:一较高低原创 2022-01-14 00:34:02 · 87 阅读 · 0 评论 -
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 · 155 阅读 · 0 评论 -
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 · 740 阅读 · 0 评论 -
c链表
c语言实现链表的构造,并输出原创 2022-01-12 00:21:10 · 217 阅读 · 1 评论