自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 CTFgif图片

gif图片用记事本打开开头必定为GIF89a

2017-04-20 20:00:43 9575

原创 一个CTF工具分享站

https://www.ctftools.com/down/

2017-04-20 19:31:35 1951 1

原创 数据结构教程(第四版)P85~87//队列的链式存储结构

这个代码一开始出了点问题,在进队列时没有将next指针置为NULL导致后面数据出错,不过好在,我问了一个朋友,才发现这个问题。 在此我要对我这位朋友表示感谢!3Q温小姐 #include #include #include #include typedef int ELemType; typedef struct Node { ELemType data; struct Node *

2017-01-08 18:25:24 394

原创 数据结构教程(第四版)P82~84//环形队列

#include #include #define MaxSize 5 using namespace std; typedef int ElemType; typedef struct { ElemType data[MaxSize]; int front,rear; }SqQueue; void InitQueue(SqQueue *&

2016-11-22 20:08:42 435

原创 数据结构教程第四版*(李春葆)P81~82//队列的顺序存储结构以及实现

#include #include #include #define Maxsize 100 typedef int ElemType; typedef struct { ElemType data[Maxsize]; int front,rear; }SqQueue; void InitQueue(SqQueue *&q) { q=(SqQueue *)malloc(sizeof(S

2016-11-19 20:40:22 1232

原创 数据结构教程第四版(李春葆)(P68~70)//栈的链式存储结构

#include #include #include typedef int ElemType; typedef struct linknode { ElemType data; struct linknode *next; }LiStack; void InitStack(LiStack *&s) { s=(LiStack *)malloc(sizeof(LiStack)); s

2016-11-19 20:11:19 848

原创 数据结构教程(P66~67)栈的顺序结构

#include #include #include #define Maxsize 100 typedef int ElemType; typedef struct { ElemType data[Maxsize]; int top; }SqStack; void InitStack(SqStack *&s) { s=(SqStack *)malloc(sizeof(SqStac

2016-11-19 19:52:13 292

原创 数据结构第四版(P47~50)

#include #include #include typedef int ElemType; typedef struct DNode { ElemType data; struct DNode *next; struct DNode *prior; }DLinkList; void CreateListF(DLinkList *&L,ElemType a[],int n) { int

2016-11-17 11:49:13 658

原创 数据结构教程(P40~45)

#include<stdlib.h> #include<iostream.h> #include<malloc.h> typedef int ElemType; typedef struct LNode { ElemType data; struct LNode * next; }LinkList; void CreateListF(LinkList *&L,ElemType a[]

2016-11-16 21:24:41 485

原创 第二章线性表P29~34(顺序线性表算法)

#include #include #include #define Maxsize 50 typedef int ElemType; typedef struct { ElemType data[Maxsize]; int length; }SqList; void CreateList(SqList * &L,ElemType a[],int n) { int i; L=(SqL

2016-11-15 20:59:14 310

原创 合并两个数组

#include using namespace std; int main() { int a[100],b[100]; int m,n,k,i,j; cout<<"请输入a数组元素中的个数"<<endl; cin>>m; for(i=0;i<m;i++) { cin>>a[i]; } cout<<"请输入b数组元素中的个数"<<endl; cin>>n; for

2016-05-28 09:30:49 324

原创 笨小熊

笨小熊时间限制:2000 ms  |  内存限制:65535 KB 难度:2 描述 笨小熊的词汇量很小,所以每次做英语选择题的时候都很头疼。但是他找到了一种方法,经试验证明,用这种方法去选择选项的时候选对的几率非常大!  这种方法的具体描述如下:假设maxn是单词中出现次数最多的字母的出现次数,minn是单词中出现次数最少的字母的出现次数,如果maxn-minn是一

2016-05-25 20:30:12 449

原创 最大公约数和最小公倍数问题

#include int greatest_common_divisor(int m ,int n)//一个利用辗转相除法求最大公约数的函数 {     int t;     while(n!=0)     {         t=m%n;         m=n;         n=t;     }     return m; } int least_c

2016-05-22 15:12:12 354

原创 关于求一个数的阶乘的C语言

根据我的测试只能算到20的阶乘!求太大的数就不行了!不过不要紧,以后肯定会的 #include long long int factorial(long long int  n)//求一个数的阶乘,返回最后结果 {     if(n==1)return 1;     else return n*factorial(n-1); } int main() {    long long

2016-05-22 14:41:21 1729 1

原创 素数问题的判断

#include #include int prime(int n)//这是一个判断素数的算法是素数的话返回1,否的话返回0 {     int i;     if(n     for(i=2;i*i     {         if(n%i==0)return 0;     }     return 1; } int main() {     int n;  

2016-05-22 14:25:21 354

原创 斐波那契数列(生小兔子问题)

#include int fibnaqi(int n)//用递归的方式写了个算出兔子数量函数,n为月份 { if(n==1)return 1; if(n==2)return 1; else return fibnaqi(n-1)+fibnaqi(n-2); } int main() { int n; scanf("%d",&n); printf("%d\n",fibnaqi(

2016-05-19 17:34:01 752

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除