数据结构
karmalk
不会造轮子的话,那就搬砖吧
即使是一个coder的命,那也要有成为programer的梦想。
展开
-
数据结构--线性表(顺序表)
//// main.c// SLDemo//// Created by 娄坤 on 2018/4/9.// Copyright © 2018年 娄坤. All rights reserved.///* 实验要求: 1:建立一个顺序表 完成 2:顺序表的长度并输出顺序表 完成 3:插入元素的位置和元素 4:删除值为x的元素 5:顺序表原创 2018-05-02 22:23:50 · 477 阅读 · 0 评论 -
数据结构--线性表(双链表C语言实现)
//// main.cpp// DoubLinkList//// Created by 娄坤 on 2018/4/27.// Copyright © 2018年 娄坤. All rights reserved.//#include <iostream>#include <stdio.h>#include <stdlib.h>#define OK 1#define ERROR原创 2018-05-03 13:38:06 · 403 阅读 · 0 评论 -
数据结构---线性表(栈的基本操作,进制转换)C语言实现
//// main.cpp// Stackdemo//// Created by 娄坤 on 2018/4/28.// Copyright © 2018年 娄坤. All rights reserved.//// 顺序栈的基本操作#include "stdio.h"#include "stdlib.h"#define StackSize 100typedef int E原创 2018-05-03 13:41:25 · 1001 阅读 · 0 评论 -
数据结构--线性表(单链表C语言实现)
//单链表的练习#include "stdlib.h"#include "stdio.h"void printLinkList(struct node *h);//单链表数据结构typedef struct node { int data; //数据域 struct node *next; //指针域}Lnode,*LinkList;//创建链表 带头结点L原创 2018-05-03 13:34:29 · 2559 阅读 · 1 评论