05 2015 档案
摘要:#include<iostream> using namespace std; #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int Status; typedef int QElemType; typedef struct QNo
阅读全文
摘要:#include<iostream> using namespace std; #define OK 1 #define ERROR 0 #define OVERFLOW -2 #define MAXSIZE 100 typedef int QElemType; typedef int Status
阅读全文
摘要:#include<iostream> using namespace std; #define OK 1 #define ERROR -1 #define OVERFLOW -2 typedef int Status; typedef struct SNode{ int data; struct S
阅读全文
摘要:#include<iostream> using namespace std; #define OK 1 #define ERROR 0 #define OVERFLOW -2 typedef int Status; typedef struct SNode{ int data; struct SN
阅读全文
摘要:根据老师的代码进行改编 #include<iostream> #include<cstdlib> using namespace std; #define OK 1 #define ERROR 0 #define OVERFLOW -2 #define MAXSIZE 100 typedef int
阅读全文
摘要:链表的基本操作。 #include<iostream> #include<cstring> #define OK 1 #define ERROR 0 #define OVERFLOW -2 using namespace std; typedef int ElemType; typedef int
阅读全文
摘要:涉及到链表的建立、删除、输入、输出 链表的归并 #include<iostream> using namespace std; #define ERROR 0 #define OK 1 typedef int ElemType; typedef int Status; typedef struct
阅读全文
摘要:在大神的基础上进行修改的代码,判断邮箱的正确格式 本代码在dev上边不能运行,在vc6.0上边也不能运行(在网上搜的说是要导入boost库),感觉麻烦就在VS2013上边运行了 #include "stdafx.h" #include<regex> #include<string> #include
阅读全文
摘要:涉及到链表的建立、链表的输入、链表的输出、以及链表的归并、链表的插入 #include<iostream> #define OK 1 #define ERROR 0 using namespace std; typedef struct LNode{ int data; struct LNode *
阅读全文
摘要:顺序表的思想容易了解,但是代码不容易掌握,我这里根据老师所提供的代码进行一下简单的总结 这个代码包含顺序表的查找,插入,删除,建表,输出数据 #include<iostream> using namespace std; #define OK 1 #define ERROR 0 #define OV
阅读全文
摘要:测试的是对二叉树的建立 及处理 代码 #include<iostream> #include<string.h> #include<queue> #include<stack> using namespace std; const int max=100000; typedef struct BiN
阅读全文
摘要:#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 1000100 int num[N]; long long ans; void guibing(int a_1,int a_2,int b_1,int b_2){//归
阅读全文