11 2014 档案

摘要:本文概略:1)ubuntu发行版开启ssh。2)centos发行版开启ssh1、ubuntu发行版安装/开启ssh服务 1.1 安装ssh服务端sudo apt-get install openssh-server 1.2 开启ssh服务sudo /etc/init.d/ssh start 1.3 ... 阅读全文
posted @ 2014-11-27 19:39 fengbohello 阅读(4193) 评论(0) 推荐(0) 编辑
摘要:1、代码 1 #include 2 #include 3 #include 4 #include 5 #include 6 7 using namespace std; 8 9 class A10 {11 public:12 int m_iX;13 14 ... 阅读全文
posted @ 2014-11-26 18:10 fengbohello 阅读(1940) 评论(0) 推荐(0) 编辑
摘要:使用STL库sort函数对vector进行排序,vector的内容为对象的指针,而不是对象。代码如下 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 class Elm 8 { 9 public:10 ... 阅读全文
posted @ 2014-11-21 11:16 fengbohello 阅读(1317) 评论(0) 推荐(0) 编辑
摘要:C++标准快速排序库qsort进行结构体快速排序代码如下 1 #include 2 #include 3 typedef struct 4 { 5 int date; 6 int value; 7 }X_S; 8 9 /* a->z */10 int cmpfunA2Z(con... 阅读全文
posted @ 2014-11-21 10:17 fengbohello 阅读(6523) 评论(0) 推荐(0) 编辑
摘要:使用 ps命令 :#ps -A -opid,stime,etime,argsps -A -opid,stime,etime,args结果:root:src# ps -A -opid,stime,etime,args PID STIME ELAPSED COMMAND 1 09:21 ... 阅读全文
posted @ 2014-11-20 18:20 fengbohello 阅读(40448) 评论(0) 推荐(0) 编辑
摘要:使用jsoncpp进行字符串、数字、布尔值和数组的封装与解析。1)下载jsoncpp的代码库 百度网盘地址 :http://pan.baidu.com/s/1ntqQhIT2)解压缩文件 jsoncpp.rarunzip jsoncpp.rar3)修改jsoncpp/src/main.cpp文件vi... 阅读全文
posted @ 2014-11-01 00:13 fengbohello 阅读(38105) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示