IOZONE安装1.下载:http://www.iozone.org/使用版本为:iozone3_4142.解压:tarxvfiozone3_414.tar3.进入解压后的目录cdiozone3_414/src/current4.安装makelinux-AMD64(直接执行make有帮助选项,选择版本)安装IOZONE需要以下:gcc、make(必须安装不然有下面的报错)5、进入ioz..
分类:
其他好文 时间:
2014-05-27 03:32:36
阅读次数:
418
------源程序的编译安装首先要经过简单的编译才能安装,编译又依赖编译平台和gcc编译器但是gcc有它的局限性,所以后来就用make代替了,make编译时也是通过调用gcc来完成编译的,但是make又依赖文件makefile,makefile又是通过脚本configure和文件makefile.in生成的autoconf命令..
分类:
其他好文 时间:
2014-05-27 03:17:36
阅读次数:
231
1、
??
Balanced Binary Tree
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subt...
分类:
其他好文 时间:
2014-05-23 08:19:19
阅读次数:
282
1、
??
Convert Sorted List to Binary Search Tree
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
分析:将一个升序排列的链表转换为平衡二叉搜索树,采用递归的方式,先找到链表...
分类:
其他好文 时间:
2014-05-22 12:33:30
阅读次数:
270
C++11新特性
C++11已经推出三年了(2011),编译器GCC4.7、Clang3.1在2012年已经逐渐完善,VS2013也已经支持相关特性,GCC4.8.1支持全部特性。不过新特性似乎在工业界并未得到太多应用,可能出于兼容性和稳定性的考虑吧。
推出的新特性还是相当的丰富,看下面这张图就知道了。我仅仅在这里提一下相对比较容易应用的部分,包括语法上的一些扩展以及改进,lambda表达...
分类:
编程语言 时间:
2014-05-22 09:30:32
阅读次数:
358
要运行J2EE的程序,就必须安装相关的容器,而如何选择JSP+Servlet模式。Tomcat是很重要的选择之一,是世界上最为广泛的Servlet和JSP容器。
下载:
1.
URL: http://tomcat.apache.org/ Tomcat 7.0.52
2.
单击左面”Tomcat 7.0”,进入Tomcat 7.0.52页面
3.
单击Binary Distri...
分类:
Web程序 时间:
2014-05-22 06:47:15
阅读次数:
295
在centos6.*中搭建nginx中遇到的一些问题。安装nginx之前,要先确定是否安装gcc、OpenSSL-devel、pcre-devel和zlib-devel软件库。安装好上边的这些库之后,继续安装nginx,在启动的时候出现了errorwhileloadingsharedlibraries:libpcre.so.1:cannotopensharedobjectfile:Nosuch..
分类:
其他好文 时间:
2014-05-20 19:11:01
阅读次数:
222
#define max(x,y) ({ typeof(x) _x = (x); typeof(y) _y = (y); (void) (&_x == &_y); _x > _y ? _x : _y; })
typeof(x)的意思是取x的类型,这不是标准C里的,gcc支持,vc不支持
(void) (&_x == &_y);这句话本身从执行程序来讲...
分类:
其他好文 时间:
2014-05-20 14:58:20
阅读次数:
269
测试源码:
//测试派生类的构造函数的调用顺序何时调用
//Fedora20 gcc version=4.8.2
#include
using namespace std;
class base
{
public:
base()
{
cout<<"base created!"<<endl;
}
~base()
{
cout<<"base destroyed!"<<en...
分类:
编程语言 时间:
2014-05-20 14:12:21
阅读次数:
322
戳我去解题Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identic...
分类:
其他好文 时间:
2014-05-20 10:09:37
阅读次数:
201