- 博客(3)
- 收藏
- 关注
原创 C语言构建简单链表并遍历
# include <stdio.h># include <malloc.h># include <stdlib.h> /*typedef的作用是为已有的数据类型定义一个新名字,其主要目的是为了我们在使用时能用这个更加清晰简单的新名字,还有一个目的就是为了简化变量的声明。*/typedef struct Node //为 struct Node 定义了一个新名字 { int data; //数据域 struct Node * pNext; //指.
2022-05-17 10:57:37
1374
原创 c语言for循环计算100以内奇数的和
# include <stdio.h>int i,sum;int main (void) { for(i = 1;i <= 100; i++) if (i%2==1) sum = sum +i ; printf("%d\n",sum); return 0;}记录一下学习进度
2022-03-28 10:50:08
9976
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人