
SDUT OJ
wz_e18
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SDUT 3363 元素位置互换之逆置算法
#include <cstdio>#include <cstdlib>const int Maxsize = 1e6+5;typedef int ElemType;typedef struct{ ElemType *ele; int length; int maxsize;} List;void Swap(int &p,...翻译 2018-09-05 23:16:27 · 187 阅读 · 0 评论 -
SDUTOJ - 2131 数据结构实验之栈与队列一:进制转换
题目链接#include <iostream>#include <cstdlib>using namespace std;typedef int ElementType;typedef struct Snode{ ElementType x; struct Snode * next;} Snode, *Ptr_snode;typ...原创 2018-10-10 10:33:52 · 350 阅读 · 0 评论 -
SDUTOJ-2054 数据结构实验之链表九:双向链表
题目链接#include <iostream>#include <cstdlib>using namespace std;typedef int ElementType;typedef struct node{ ElementType x; struct node * next; struct node * front;} ...原创 2018-10-10 09:18:42 · 255 阅读 · 0 评论 -
SDUTOJ-3331 数据结构实验之链表八:Farey序列
链表节点插入练习题 题目链接#include <stdio.h>#include <cstdlib>using namespace std;typedef int ElementType;typedef struct node{ ElementType x, y; struct node * next;} Lnode;typede...原创 2018-10-08 17:02:07 · 158 阅读 · 0 评论 -
类实现 链表
刚接触面相对象,自己猜着写的,请多指教#include <stdio.h>#include <stdlib.h>#include <string.h>template <class ElementType>class List{private : typedef struct Lnode { Ele...原创 2018-09-27 21:57:01 · 771 阅读 · 0 评论 -
SDUT-2484 算术表达式的转换
#include<stdio.h>#include<stdlib.h>#include<string.h>#define Maxsize 1000typedef char Elementtype;struct node{ Elementtype * data; int top; int maxsize;};i...原创 2018-10-11 19:16:26 · 185 阅读 · 0 评论 -
SDUT 3330 二分查找
顺序表的应用 题目链接#include <cstdio>#include <cstdlib>const int Maxsize = 1e6+5;typedef int ElemType;typedef struct{ ElemType *ele; int length; int maxsize;} List;int Bina...原创 2018-09-26 08:50:39 · 235 阅读 · 0 评论