
数据结构
天上飞下一毛雪
弱鸡的冒险之旅,大四找工作狗,我真的真的好菜。。。。博客内容如有侵权或交流讨论,请加微信:jqt1120359293
展开
-
重学数据结构 链表(工程文件)算法2.8 2.9 2.10 2.11
link.htypedef int ElemType;typedef int Status; typedef struct LNode { ElemType data; LNode *next; }*LinkList; void CreateList(LinkList &L,int n) ; void CreateList2(LinkList &L,int n原创 2017-10-18 21:50:56 · 624 阅读 · 0 评论 -
链表栈 纳尼。。
#include#includetypedef struct node{ int date; struct node *next;}node,*pnode;int creat_node(pnode &s,int number) //入栈{ pnode p; s=(pnode)malloc(sizeof(node)); s->next=NULL; printf("put原创 2017-11-01 16:40:35 · 183 阅读 · 0 评论 -
C语言程序设计课程设计 - (物业管理系统 - 纯C)
本套代码分享了我大一C语言实训时最后的 C语言课程设计,第一次接触编程能力还很弱,欢迎拍砖提议。。额。。。2019.7.7更,最近好多人都在问我代码的问题,大多是大一的,可能C语言语法还不是太熟悉,代码很难复现出来。(看来又到实训期了。。。)现在做下补充:1、开发环境:本人大一的时候还是用的visualstudio 2015(没在VC++6.0上做测试,咱也不知道。。。咱也不敢问,都...原创 2017-11-03 16:15:32 · 13785 阅读 · 32 评论 -
队列
#include#includetypedef struct node{ int date; struct node *next;}node,*pnode;typedef struct link{ pnode front; pnode rear;}link;void creat_link(link &q){ q.front=q.rear=(pnode)malloc(s原创 2017-11-03 17:20:08 · 220 阅读 · 0 评论 -
链表 归并
#include #include typedef struct node { int date; struct node *next; }node,*lnode; void createlist(lnode &l,int n); //在链表 后边不断插入正序插入链表 void createlist2(lnode &l,int n); //在链表 前原创 2017-10-24 17:29:49 · 677 阅读 · 0 评论 -
数据结构 栈
#include#includetypedef struct{ int *base; int *top; int stacksize;}sqstack;int Make_stack(sqstack &s) //初始化空栈{ s.base=(int *)malloc(100*sizeof(int)); if(!s.base) { return 0; } s.to原创 2017-10-30 22:03:36 · 288 阅读 · 0 评论 -
重学数据结构 将Lb中纯在但不在La中的数据元素插入到La中
#include#includeint main(){ char La[200],Lb[200]; int lena,lenb,flag,count; scanf("%s",La); scanf("%s",Lb); lena=strlen(La); count=lena; lenb=strlen(Lb); flag=0; for(int i = 0;i < lenb;i++原创 2017-10-14 21:25:19 · 1227 阅读 · 0 评论 -
重学数据结构 顺序表的添加 删除 算法2.4和2.5
#include#include#include#includetypedef struct list{ int *elem; int nowlength; int nowsize;}list;int addlist(list &l);//创建表int inlist(list &l,int i,int e);//添加int deletelist(list &l,int i)原创 2017-10-17 16:39:02 · 359 阅读 · 0 评论 -
重学数据结构 完整顺序表(工程文件)
line.htypedef int Status; // Status是函数的类型,其值是函数结果状态代码,如OK等typedef int ElemType; typedef struct SqList { ElemType *elem; // 存储空间基址 int length; // 当前长度 int listsize; // 当前分配的存储容量(以sizeof原创 2017-10-17 16:40:11 · 241 阅读 · 0 评论 -
重学数据结构 并归 算法2.6
#include#include#includetypedef struct list{ int *elem; int nowlength; int nowsize;}list;int addlist(list &l);//创建表int inlist(list &l,int i,int e);//添加int deletelist(list &l,int i);//删除voi原创 2017-10-17 17:30:52 · 249 阅读 · 0 评论 -
重学数据结构 简单链表 倒叙,正序插入、常规显示、递归显示
#include#includetypedef struct node{ int date; struct node *next;}node,*lnode;void createlist(lnode &l,int n); //在链表 后边不断插入正序插入链表 //在链表 前边一位不断插入节点void disp原创 2017-10-18 17:24:55 · 390 阅读 · 0 评论 -
重学数据结构 链表增删
#include#includetypedef struct node{ int date; struct node *next;}node,*lnode;void createlist(lnode &l,int n); //在链表 后边不断插入正序插入链表void createlist2(lnode &l,int n); //在链表 前边一位不断插入节点void display原创 2017-10-18 21:46:34 · 202 阅读 · 0 评论 -
2017年山东省机器人比赛 双足竟步 arduino源代码(删去了关键步态程序 gongneng1 和 gongneng2)
/* write by qingtai jiang leftleg.write(95); leftfoot.write(100); rightleg.write(80); rightfoot.write(64); delay(s); //状态1 初始角度 #define aa 88 //舵机初始角度 左上 舵机 #define bb 89 // 左下原创 2017-10-31 16:54:33 · 1942 阅读 · 1 评论