会员
周边
众包
新闻
博问
闪存
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JamesGordan
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
7
下一页
2022年3月13日
有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少?
摘要: #include <stdio.h> int main() { int i, j, k; for (i = 1; i < 5; i++) for (j = 1; j < 5; j++) for (k = 1; k < 5; k++) if (i != j && i != k && j != k) p
阅读全文
posted @ 2022-03-13 09:58 JamesGordan
阅读(45)
评论(0)
推荐(0)
2022年3月9日
实验11-2-6 奇数值结点链表 (20 分)
摘要: #include <stdio.h> #include <stdlib.h> struct ListNode { int data; struct ListNode *next; }; struct ListNode *readlist(); struct ListNode *getodd(stru
阅读全文
posted @ 2022-03-09 10:28 JamesGordan
阅读(74)
评论(0)
推荐(0)
实验11-2-4 删除单链表偶数节点 (20 分)
摘要: #include <stdio.h> #include <stdlib.h> struct ListNode { int data; struct ListNode *next; }; struct ListNode *createlist(); struct ListNode *deleteeve
阅读全文
posted @ 2022-03-09 09:44 JamesGordan
阅读(181)
评论(0)
推荐(0)
实验11-2-3 逆序数据建立链表 (20 分)
摘要: #include <stdio.h> #include <stdlib.h> struct ListNode { int data; struct ListNode *next; }; struct ListNode *createlist(); int main() { struct ListNo
阅读全文
posted @ 2022-03-09 09:11 JamesGordan
阅读(78)
评论(0)
推荐(0)
2022年3月8日
实验11-1-6 指定位置输出字符串 (20 分)
摘要: #include <stdio.h> #define MAXS 10 char *match(char *s, char ch1, char ch2); int main() { char str[MAXS], ch_start, ch_end, *p; scanf("%s\n", str); sc
阅读全文
posted @ 2022-03-08 19:51 JamesGordan
阅读(102)
评论(0)
推荐(0)
实验11-1-4 计算最长的字符串长度 (15 分)
摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> #define MAXN 10 #define MAXS 20 int max_len(char *s[], int n); int main() { int i, n; char
阅读全文
posted @ 2022-03-08 10:45 JamesGordan
阅读(103)
评论(0)
推荐(0)
实验11-1-3 查找星期 (15 分)
摘要: #include <stdio.h> #include <string.h> #define MAXS 80 int getindex(char *s); int main() { int n; char s[MAXS]; scanf("%s", s); n = getindex(s); if (n
阅读全文
posted @ 2022-03-08 09:22 JamesGordan
阅读(56)
评论(0)
推荐(0)
实验11-1-2 输出月份英文名 (15 分)
摘要: #include <stdio.h> char *getmonth(int n); int main() { int n; char *s; scanf("%d", &n); s = getmonth(n); if (s == NULL) printf("wrong input!\n"); else
阅读全文
posted @ 2022-03-08 09:04 JamesGordan
阅读(40)
评论(0)
推荐(0)
实验10-10 递归实现顺序输出整数 (15 分)
摘要: #include <stdio.h> void printdigits(int n); int main() { int n; scanf("%d", &n); printdigits(n); system("pause"); return 0; } /* 你的代码将被嵌在这里 */ void pr
阅读全文
posted @ 2022-03-08 08:58 JamesGordan
阅读(150)
评论(0)
推荐(0)
实验10-9 十进制转换二进制 (15 分)
摘要: #include <stdio.h> void dectobin(int n); int main() { int n; scanf("%d", &n); dectobin(n); system("pause"); return 0; } /* 你的代码将被嵌在这里 */ void dectobin
阅读全文
posted @ 2022-03-08 08:51 JamesGordan
阅读(62)
评论(0)
推荐(0)
1
2
3
4
5
···
7
下一页
公告