![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言
努力努力再努力12138
勇往直前,不忘初心
展开
-
c语言实现查找两个字符串中的最长公共子串
编写程序,实现查找两个字符串中的最长公共子串 可直接运行 //1、编写程序,实现查找两个字符串中的最长公共子串; //取next数组中 #include <stdio.h> #include <string.h> void Next(char *T, int *next) { int i = 1; next[1] = 0; int j = 0; while (i < strlen(T)) { if (j == 0 || T原创 2020-09-22 19:52:56 · 4834 阅读 · 0 评论 -
c语言单链表实现一元多项式相加算法
给定两个一元多项式,实现两个一元多项式的相加算法。提示:用一条单链表表示一个一元多项式,每个节点包含三个域:指数域、系数域和后继结点链。 可直接运行 #include <stdio.h> #include <stdlib.h> #include <malloc.h> struct Node; typedef struct Node *PNode; struct Node { int zhishu; int xishu; PNode next; };原创 2020-09-22 19:51:26 · 5584 阅读 · 1 评论 -
c语言实现创建学生成绩表,实现插入、删除和统计等管理功能。
c语言实现创建学生成绩表,实现插入、删除和统计等管理功能。 #include <stdio.h> #include <stdlib.h> #include <malloc.h> typedef struct SeqList *PSeqList; struct SeqList //定义线性表结构 { int MAXNUM; int n; int *score; char *name; }; PSeqList create_stuscr_原创 2020-09-22 19:49:13 · 4453 阅读 · 0 评论 -
线性表-链接表示
#include<stdio.h> #include<stdlib.h> #include<malloc.h> struct Node; //结点类型 typedef struct Node *PNode; //结点指针类型 struct Node //结点结构 { int info; PNode link; }; typedef struct Node *LinkList; //(单链表类型)头指针类型 PNode locatePre_link(原创 2020-06-01 21:01:50 · 134 阅读 · 0 评论 -
数据结构-线性表-顺序表示
#include<stdio.h> #include<stdlib.h> #include<malloc.h> typedef struct SeqList * PSeqList; struct SeqList { int MAXNUM; int n; //线性表中元素 int * element; //元素 }; PSeqList createNullList_seq(int m) //创建空顺序表 { PSeqList pali原创 2020-05-27 22:09:07 · 152 阅读 · 0 评论 -
c语言实现空线性表创建
#include<stdio.h> #include<stdlib.h> #include<malloc.h> typedef struct SeqList * PSeqList; struct SeqList { int MAXNUM; int n; int * element; }; PSeqList createNullLis...原创 2020-04-21 22:15:18 · 7823 阅读 · 1 评论