建立PriorityQueue.hpp:#define_CRT_SECURE_NO_WARNINGS1
#include<iostream>
usingnamespacestd;
#include<assert.h>
#include<vector>
template<classT>
structLess
{
booloperator()(constT&l,constT&r)
{
returnl<r;
}
};
template..
分类:
其他好文 时间:
2016-04-27 07:09:59
阅读次数:
181
#define_CRT_SECURE_NO_WARNINGS1
#include<iostream>
usingnamespacestd;
enumPointerTag{THREAD,LINK};//枚举
前言:为了遍历的方便,我们在二叉树中引入前驱和后序,这样就储存了相关信息。
其结构如下:template<classT>
structBinaryTreeThdNode
{
T_data;..
分类:
其他好文 时间:
2016-04-27 07:09:56
阅读次数:
132
打开CentOS,输入用户名和密码 查询ip:ifconfig eg:inet addr:192.168.12.107 打开CRT 右键点击Sessions-->New Sessions 点击下一步 在Hostname输入ip地址,在Username输入用户名 创建完成 右键点击连接-->conne ...
分类:
系统相关 时间:
2016-04-26 01:59:50
阅读次数:
744
遇到比较多的数据时,我们通常采用"打擂台"的方法处理#define_CRT_SECURE_NO_WARNINGS1#include<stdio.h>intmain(){ inta,b,c,d,max; scanf("%d%d%d%d",&a,&b,&c,&d); max=a; if(b>max) max=b; if(c>max) max=c; if(d>max) max=d; printf("%..
分类:
其他好文 时间:
2016-04-23 15:09:27
阅读次数:
155
//函数声明:
#define_CRT_SECURE_NO_WARNINGS1
#include<stdio.h>
#include<stdlib.h>
#defineSTACK_INIT_MEMORY100
#defineSTACK_GROW_MEMORY10
typedefintElemType;
typedefstructstack
{
ElemType*esp;
ElemType*ebp;
intsize;//记录当前栈内空间最多能存几..
分类:
其他好文 时间:
2016-04-23 15:08:10
阅读次数:
173
本文摘自csdn沧海一粟的专栏 link:http://blog.csdn.net/xuleilx/article/details/7281499 Warning 1 warning C4996: 'fopen': This function or variable may be unsafe. C ...
分类:
其他好文 时间:
2016-04-22 11:58:01
阅读次数:
117
广义表是非线性的结构,是线性表的一种扩展,是有n个元素组成有限序列。
广义表的定义是递归的,因为在表的描述中又得到了表,允许表中有表#define_CRT_SECURE_NO_WARNINGS1
#include<iostream>
usingnamespacestd;
#include<assert.h>
enumType
{
HEAD,//头节点
..
分类:
其他好文 时间:
2016-04-22 10:44:06
阅读次数:
210
#define_CRT_SECURE_NO_WARNINGS1#include<iostream>usingnamespacestd;classTime{public: inthour; intminute; intsec;};voidset_time(Time&t)//定义函数set_time,形参t是引用变量{ cin>>t.hour;//输入设定的时间 cin>>t.minute; cin>>t.sec;}voi..
分类:
其他好文 时间:
2016-04-20 23:58:30
阅读次数:
298
1、命令简介 more (more) 会将文件内容一页一页的显示,方便使用者逐页阅读。(file perusal filter for crt viewing) ,按空白键(space)就往下一页显示,按 b 键就会往回(back)一页显示,而且还有搜寻字串的功能(与 vi 相似),使用中的说明文件... ...
分类:
系统相关 时间:
2016-04-20 23:45:09
阅读次数:
442
一、系统与软件 WIN7 64bit、VirtualBox 5.0.14、CentOS 6.5、SecureCRT 7.2.3 二、使用文件夹共享需要安装增强功能,但是安装时无法读取光盘iso文件 三、为了方便操作,配置静态IP,并使用CRT连接上去(参考http://my.oschina.net/ ...