摘要: 单链表的插入操作实现 阅读全文
posted @ 2019-02-28 21:32 Ghost4C 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 顺序表插入操作的实现 阅读全文
posted @ 2019-02-28 20:10 Ghost4C 阅读(669) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-02-24 00:46 Ghost4C 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 解决过程: 第一步: 第二步: 阅读全文
posted @ 2019-02-24 00:26 Ghost4C 阅读(1638) 评论(0) 推荐(0) 编辑
摘要: //KMP串的模式匹配算法 #include <stdio.h> #include <stdlib.h> #include <string.h> int* get_next(char t[], int length) { int i = 0, j = -1; int* next = (int *)m 阅读全文
posted @ 2019-02-12 00:17 Ghost4C 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 结果: 编译器报错:lvalue require as increment operand (错误在第10行) 自己的理解: 原来 在这里如果要使用 *des++ 或者 *source++ 那么 des 或 source 就需要是个能进行加一操作的指针也就是地址,然而在上面的代码中 des 和 so 阅读全文
posted @ 2019-02-08 23:44 Ghost4C 阅读(1822) 评论(1) 推荐(0) 编辑
摘要: Input1输入输出结果: 连续输入输出正常 带有空格的输入输出不正常 Input2输入输出结果: Input3输入输出结果: 相关百度问答: https://zhidao.baidu.com/question/510517719.html 阅读全文
posted @ 2019-02-01 18:21 Ghost4C 阅读(1468) 评论(0) 推荐(0) 编辑
摘要: 题目描述 令Pi表示第i个素数。现任给两个正整数M 输入在一行中给出M和N,其间以空格分隔。 输出描述 输出从PM到PN的所有素数,每10个数字占1行,其间以空格分隔,但行末不得有多余空格。 输入例子 5 27 输出例子 11 13 17 19 23 29 31 37 41 43 47 53 59 阅读全文
posted @ 2018-11-01 18:08 Ghost4C 阅读(326) 评论(0) 推荐(0) 编辑
摘要: #include #include void A1(int *ar,int i); void A2(int *ar,int i); void A3(int *ar,int i); void A4(int *ar,int i); void A5(int *ar,int i); int main() { int i,n; scanf("%d",&i); i... 阅读全文
posted @ 2018-10-27 14:09 Ghost4C 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-10-17 20:06 Ghost4C 阅读(1422) 评论(0) 推荐(0) 编辑