- 博客(2)
- 收藏
- 关注
原创 数据结构—链表(c语言)
链表的基本操作链是一种非常重要的数据结构,我们可以对链表进行增删改查等基本操作#include<stdio.h>#include<stdlib.h>struct node{ int num,score; struct node * next;};void find(struct node * head)/*查找节点*/ struct node *p; int x; printf("输入要查找的学号:\n"); scanf("%d",&x); p=h
2022-05-17 19:17:35
592
原创 自定义函数的引用
在C语言中自定义函数以供其他函数调用我们在定义自定义函数时,我们该将其放在main函数前定义还是mian函数后定义呢,有时会引起不同的结果。如果在main函数之前定义:void Fun(){ printf("welcome to c world\n");}void main(){ Fun();};此时我们可以顺利得到"welcome to c world"。如果我们在main函数之后定义:void main(){ Fun();};void Fun(){ pr
2022-05-15 21:05:19
810
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人