11 2017 档案

摘要:List_insert mooc地址 Tips: malloc()和free()的基本概念以及基本用法: 函数原型及说明: void *malloc(long NumBytes):该函数分配了NumBytes个字节,并返回了指向这块内存的指针。如果分配失败,则返回一个空指针(NULL)。 关于分配失 阅读全文 »
posted @ 2017-11-30 20:11 Veritas_des_Liberty 阅读(707) 评论(0) 推荐(0) 编辑
摘要:栈的运用 mooc视频连接 #include <iostream> using namespace std; char S[100]; int Top, Number_of_Items = 0; void Push(char c) { if ( Number_of_Items == 0 ) { To 阅读全文 »
posted @ 2017-11-29 13:16 Veritas_des_Liberty 阅读(369) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> #include <stdio.h> using namespace std; int Q[100]; int Head, Tail, Number_of_Items = 0; void Enqueue(int x) { if( Number_of_Items 阅读全文 »
posted @ 2017-11-29 08:51 Veritas_des_Liberty 阅读(433) 评论(0) 推荐(0) 编辑
摘要:A. Theatre Square time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Theatre Square in the c 阅读全文 »
posted @ 2017-11-29 08:32 Veritas_des_Liberty 阅读(818) 评论(0) 推荐(0) 编辑
摘要:1 Insertion Sort(40分) 1 Insertion Sort(40分) 题目内容: 實作插入排序法讓一個序列的數字遞增,並輸出數字總共交換了幾次。 比如說一個序列1 3 7 9 2,前四個數字都已經排好了,這時候第五個數字2進來,他必須跟9,7,3交換使得序列變成1 2 3 7 9。 阅读全文 »
posted @ 2017-11-14 16:26 Veritas_des_Liberty 阅读(232) 评论(0) 推荐(0) 编辑
摘要:转自: http://blog.csdn.net/sinat_27088253/article/details/52137855 http://jingyan.baidu.com/article/0bc808fc55bfbc1bd585b97f.html 1.下载Code::Blocks: 截止到我 阅读全文 »
posted @ 2017-11-13 16:59 Veritas_des_Liberty 阅读(283) 评论(0) 推荐(0) 编辑
摘要:code::block不能调试问题 今天在codeblock不能进行调试,百度总结如下: 1 进行调试的必须是一个project而不能是一个单一的cpp文件。 2 project的路径不能包含中文,尽量不要包含空格,不知道空格会不会有影响。 3 本身没有打开编译器的-g标志,具体:在setting- 阅读全文 »
posted @ 2017-11-13 16:32 Veritas_des_Liberty 阅读(254) 评论(0) 推荐(0) 编辑
摘要:A. The Meaningless Game time limit per test:1 second memory limit per test:256 megabytes input:standard input output:standard output Slastyona and her 阅读全文 »
posted @ 2017-11-12 18:59 Veritas_des_Liberty 阅读(384) 评论(0) 推荐(0) 编辑
摘要:/*堆排序(大顶堆)*/ #include #include using namespace std; void HeapAdjust(int *a,int i,int size) //调整堆 { int lchild=2*i; //i的左孩子节点序号 int rchild=2*i+1; //i的右孩子节点序号 int max=... 阅读全文 »
posted @ 2017-11-12 17:54 Veritas_des_Liberty 阅读(194) 评论(0) 推荐(0) 编辑
摘要:1 #include<iostream> 2 using namespace std; 3 4 #define N 100 5 6 int g_array[N]; //存放输入的数字 7 static int count; //存放元素的个数 8 9 //初始化函数 10 void Initial( 阅读全文 »
posted @ 2017-11-12 17:34 Veritas_des_Liberty 阅读(244) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h>#include<math.h>#define M 10^5+10int p[1000000],a[10000001],t=0;int prime(int n){ int i,q; q=(int)sqrt(n); for(i=0;p[i]<=q&&t;i++) if 阅读全文 »
posted @ 2017-11-08 20:40 Veritas_des_Liberty 阅读(197) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示