C语言学习
linakii
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
初学单链条
学完单链条头发又掉了几根 用单链条做一个图书管理系统 #include <stdio.h> #include <string.h> #include <stdlib.h> struct Book { char title[128]; char author[40]; struct Book *next; }; void getInput(struct Book *); void addBook(struct Book **); void printLibra原创 2021-03-04 17:51:18 · 308 阅读 · 1 评论 -
C语言:报数问题
题目:有N个人,从1到N编号,按照编号顺序围成一圈。从第一个人开始报数(从1报到3),凡报到3的人退出圈子。 问:最后留下的人的编号是几号。 #include <stdio.h> #include <stdlib.h> int main() { int num; int *array = NULL; printf("请输入围成圈的人数:"); scanf("%d",&num); array = (int *)calloc(num,sizeof(int));原创 2021-03-03 12:54:58 · 986 阅读 · 0 评论
分享