
数据结构
Sss1mple
记录有意义的事和代码
展开
-
模拟停车场管理C语言代码
#include<stdio.h>#include <stdlib.h>#include <string.h>#include<conio.h>#include <time.h>#define Stack_Size 4typedef struct{ //车辆信息 char number[10]; //车牌号 int reachHour; int reachMin; int seconds; }Car;typ原创 2021-02-22 00:44:50 · 2635 阅读 · 4 评论 -
c语言学生信息管理系统
超简单的学生信息管理系统使用顺序表实现~~适合入门,新手学习使用#include<stdio.h>#include<stdlib.h>#include<string.h>#include<conio.h>#define N 20int count=0;typedef struct{ int score;//成绩 char name[12];//姓名 char number[20]; //学号 int grade; //年级 }s原创 2020-10-12 08:50:31 · 1053 阅读 · 0 评论 -
c语言一元多项式相加
#include<stdio.h>#include<stdlib.h>typedef struct Node{ float coef;//系数 int exp;//项数 struct Node *next;}LNode,*Linklist;void newPolynomial(Linklist &head){ LNode *p; int i,tempExp; float tempCoef; scanf("%f%d",&tempCoef,&a原创 2020-10-04 10:36:48 · 1890 阅读 · 0 评论 -
单链表尾插法详解
单链表尾插法详解首先,我们知道单链表的存储结构为:typedef struct LNode{ElemType data;//数据域 struct LNode *next;//指针域,指向下一个结点}LNode,*Linklist;//*LinkList是指向LNode这个结构的一个指针,可以去定义变量,定义出来的是指向这个结构的指针变量其中,LNode *p和Linklist p是等价的;*p可以理解为一个LNode结构体,p则是一个指向LNode结构的指针,可以用->运算符来访问结原创 2020-09-18 19:14:44 · 10665 阅读 · 5 评论