如果你使用的是 Fedora,
Red Hat, CentOS, 或者 Scientific Linux 系统,使用下面的命令安装GNU的C/C++开发包和编译器。
# yum groupinstall 'Development Tools'
如果你使用的是Debian
或者 UbuntuLinux系统,你可以使用下面的这个命令来安装C/C++编译器。
#sudo ...
分类:
编程语言 时间:
2014-06-07 01:56:20
阅读次数:
302
【题目】
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.
Here, we will use the integers 0, 1, and 2 to represent the color red, white, and...
分类:
其他好文 时间:
2014-06-07 01:17:49
阅读次数:
269
vmware-vdiskmanager.exe将多个vmdk文件转化成一个vmdk文件...
分类:
其他好文 时间:
2014-06-05 12:36:35
阅读次数:
402
SystemTap是我目前所知的最强大的内核调试工具,有些家伙甚至说它无所不能:)
Debuted in 2005 in Red Hat Enterprise Linux 4 Update 2 as a technology preview.
After four years in development, System 1.0 was released in 2009.
As of 2011 SystemTap runs fully supported in all Linux distributions...
分类:
其他好文 时间:
2014-06-05 12:35:09
阅读次数:
280
本人是用的vmware上安装的centOS系统。
先去apache的tomcat官网上下载下来所需要的文件,网址为http://tomcat.apache.org/download-70.cgi
点击tar.gz下载就可以。
接着把下载下来的tomcat拖到虚拟机中的centOS的目录下,我拖到的是/home/449261417/下载 这个目录中。
接着打开终端开始敲命令
tar...
分类:
其他好文 时间:
2014-06-05 07:06:24
阅读次数:
305
Given an array withnobjects colored red, white
or blue, sort them so that objects of the same color are adjacent, with the
colors in the order red, wh...
分类:
其他好文 时间:
2014-06-04 20:49:33
阅读次数:
276
Given an array withnobjects colored red, white or
blue, sort them so that objects of the same color are adjacent, with the colors
in the order red, wh...
分类:
其他好文 时间:
2014-06-03 13:13:50
阅读次数:
537
最近VMWare下搞了2个CentOS 32bit虚拟机,
装了些软件之后,都遇到开机无法显示登录界面, 仅能看见桌面背景图的情况。 以下是我搜索很久汇总的方法。 尝试按 ctrl + alt +
F3(快捷键可能有所不同), 由桌面模式进入命令行模式。 直接 startx 报错: Fat...
分类:
其他好文 时间:
2014-06-03 06:48:12
阅读次数:
293
按步骤介绍 Red Hat linux 如何增加swap空间 方法/步骤
第一步:确保系统中有足够的空间来用做swap交换空间,我使用的是KVM,准备在一个独立的文件系统中添加一个swap交换文件,在/opt/image中添加2G的swap交换文件
第二步:添加交换文件并设置其大小为2G,使用如下命...
分类:
系统相关 时间:
2014-05-31 01:39:25
阅读次数:
458
红黑树(Red-Black
Tree)红黑树是一种BST,但是每个节点上增加一个存储位表示该节点的颜色(R或者B);通过对任何一条从root到leaf的路径上节点着色方式的显示,红黑树确保所有路径的差值不会超过一倍,最终使得BST接近平衡;红黑树内每个节点包含五个属性:color,
key, lef...
分类:
数据库 时间:
2014-05-29 16:51:27
阅读次数:
400