本文通过研究STL源码来剖析C++中标准模板块库std::string运行机理,重点研究了其中的引用计数和Copy-On-Write技术。平台:x86_64-redhat-linuxgcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC)1. 问题提出最近...
分类:
系统相关 时间:
2015-07-31 17:40:34
阅读次数:
161
linux安装中文支持 ----基于Red Hat Enterprise Linux Server release 6.4 (Santiago) 简介:按照如下修改后linux英文系统会变成中文系统 ps:其实我遇到的问题是终端显示中文乱码,一顿谷歌度娘,重启服务器,发...
分类:
系统相关 时间:
2015-07-31 13:17:13
阅读次数:
240
RedHat Enterprise Linux 6.4使用Centos 6的yum源问题作为一名新手,学习Linux已经一个月了,其间遇到了不少问题,而今天笔者遇到的问题是#yum install pam-devel#This system is not registered to Red Hat ...
分类:
系统相关 时间:
2015-07-31 01:21:41
阅读次数:
261
RedHat Enterprise Linux 6.4使用Centos 6的yum源问题
分类:
其他好文 时间:
2015-07-31 01:08:10
阅读次数:
783
题意 给你一个字典 输出字典中能表示成两个单词连接的所有单词
最基础的字典树应用 先把所有单词加入字典树中 标记每个结点是否为某个单词的结尾 然后查找每个单词 在树上查询过程中遇到单词结尾时 如果剩下的后缀也是一个单词 那当前查询的单词就可以是两个单词的连接了
#include
#include
using namespace std;
const int N = 5000...
分类:
其他好文 时间:
2015-07-27 19:03:51
阅读次数:
123
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register
分类:
其他好文 时间:
2015-07-27 18:20:14
阅读次数:
441
在我们排版数学推导式时,很多时候我们希望能够让公式的等号对齐这样更接近人的数学推导习惯如下图效果图使用 begin{aligned} end{aligned将所需对齐的数学公式代码块包起来即可代码如下注意!公式等号的前需要有制作表格的符号 & $ f(x)=2*x^3-x-2 $ \quad unique zero $ \hat{x} \in [1, 2] $
\begin{enumerate}...
分类:
其他好文 时间:
2015-07-26 15:51:10
阅读次数:
143
1.在使用mp[key]的时候它会去找键值为key的项,如果没有,他会自动添加一个key的项,再把value赋值为相应的初始值(value是int的话赋值为0,string的话赋值为空)。所以如果是插入的话可以用insert,如果是查找的话可以使用find,这样可以节省开销。查找的时间复杂度为O(logn)
2.
代码:#include
#include
#include
using ...
分类:
其他好文 时间:
2015-07-26 12:49:38
阅读次数:
160
就是查找这个单词能不能有两个单词组成,简单的字典树题目//////////////////////////////////////////////////////////////#include#include#includeusingnamespacestd;#definemaxn26struct...
分类:
其他好文 时间:
2015-07-24 20:43:00
阅读次数:
116
jenkins官网安装文档https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions一、环境系统CentOS6.4x64最小化安装IP192.168.3.38二、安装[root@jenkins~]#wget-O/etc/yum.repos.d/jenkins.repohttp://pkg.jenkins-ci.org/redhat-stable/jenk..
分类:
其他好文 时间:
2015-07-24 00:16:48
阅读次数:
151