
C/C++
-早起的码农
这个作者很懒,什么都没留下…
展开
-
C++随机打乱数组
想开始学习c++,看看服务器上有没有装g++ -v ,成功安装显示 Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-原创 2011-09-12 12:38:56 · 8290 阅读 · 2 评论 -
c++ 使用正则表达式分割字符串
#include #include #include int main(){ std::string s = "who,lives:in-a,pineapple under the sea?"; boost::regex re(",|:|-|\原创 2011-09-18 16:53:39 · 7503 阅读 · 0 评论 -
g++/gcc选项
添加运行时共享库目录运行使用共享库的程序需要加载共享库(不同于G++ 编译时指定的链接库),添加共享库的步骤:修改文件 /etc/ld.so.conf 添加共享库目录运行 ldconfig 同步更新一下如:1gedit /etc/ld.so.conf2 #添加 /root/dreamlove/lib3ldconfig添加include,lib的搜寻路径对所有用户有效修改/etc/profil转载 2014-03-25 11:21:31 · 4195 阅读 · 0 评论 -
Hello World FastCGI
1, Nginx 安装,http://nginx.org/en/download.html.下载解压,configure,make ,make install.安装过程中确实包,需要先下载安装依赖包2,安装lighttpd的spawn-fastcgi 下载http://www.lighttpd.net/download/lighttpd-1.4.19.tar.gz ./configuremake原创 2014-05-08 15:08:13 · 2839 阅读 · 0 评论