1. 快速排序不稳定的排序。2. 希尔排序直接插入排序的改进,是稳定的排序。3.
直接插入排序稳定的排序。
分类:
其他好文 时间:
2014-05-05 23:12:36
阅读次数:
246
http://www.oschina.net/question/100267_61129?sort=default&p=1#tags_navhttp://www.cnblogs.com/top5/archive/2011/12/29/2306241.htmlhttp://www.open-open....
分类:
移动开发 时间:
2014-05-05 22:49:04
阅读次数:
417
c语言中的二进制输出是没有占位符的,不像八进制:%o; 和十六进制:x%;c中二进制的输出 1
//右移31位,从最高为开始和1做&运算,得到每一位的二进制数值 2 void printbinry(int num) 3 { 4 int count
= (sizeof(num)=0) { 6 ...
分类:
编程语言 时间:
2014-05-05 22:37:02
阅读次数:
431
//指针变量就是用来存储地址的,只能存储地址格式: int *p;
这个p为指针变量;指针变量占8个字节类型是用来说明这个指针指向的类型; 比如上边的int代表这个指针变量会指向int类型的存储空间;int *p =
&a;//这样一句可以写,此时的*只是一个标志,表示这个*只是表示p是个指针;*p...
分类:
编程语言 时间:
2014-05-05 22:10:02
阅读次数:
417
数组:数组的定义注意点数组初始化正确写法:int args[5] =
{1,23,32,4,5};int args[5] = {12,23};int args[5] = {[3]=23,
[4]=13};//这种写法也可以,直接给其中角标为3和4的赋值int args[] = {12,23,32};...
分类:
编程语言 时间:
2014-05-05 22:07:39
阅读次数:
388
以下大部分内容摘自《windows程序设计 第2版》 王艳平 张铮
编著动态类型识别:在程序运行过程中,辨别对象是否属于特定类的技术。应用举例:函数辨别参数类型、需要针对对象的类编写特定的代码。CRuntimeClass
包含类信息(不仅包含一般的信息,还包括创建类的函数指针)#include #i...
分类:
其他好文 时间:
2014-05-05 22:01:36
阅读次数:
383
函数名
释义
介绍
htmlspecialchars
将与、单双引号、大于和小于号化成HTML格式
&转成&
"转成"
' 转成'
>转成>
htmlentities()
所有字符都转成HTML格式
除上面htmlspecialchars字符外,还包括双字节字符显示成编码等。
ad...
分类:
Web程序 时间:
2014-05-05 13:06:39
阅读次数:
414
代码:
#include
#include
#include
#include
using namespace std;
const int maxn=10003;
const int inf=0x7fffffff;
int num[maxn];
int n;
int main()
{
while(scanf("%d",&n)!=EOF&&n)...
分类:
其他好文 时间:
2014-05-04 12:39:16
阅读次数:
331
本文出自:http://blog.csdn.net/svitter
原题:http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=1053
题意:完全背包不解释。。直接贴代码。。
#include
#include
#include
using namespace std;
#defi...
分类:
其他好文 时间:
2014-05-03 16:06:14
阅读次数:
324
生成树协议里常见的4个guard:bpduguard,rootguard, loopguard & UDLD; 3个Fast:portFast,uplinkFast & backboneFast; 还有一个filter:bpdufilter。
这篇文章一起总结一下。...
分类:
其他好文 时间:
2014-05-03 15:24:46
阅读次数:
513