04 2015 档案

c++ 字符串工具类
摘要:#include #include "util.h"namespace strtool{std::string trim(const std::string& str) { std::string::size_type pos = str.find_first_not_of(' '); ... 阅读全文

posted @ 2015-04-29 17:02 雨渐渐 阅读(841) 评论(0) 推荐(0) 编辑

c++ 多线程编程
摘要:http://blog.csdn.net/hitwengqi/article/details/8015646基本用法#include #include using namespace std;#define NUM_THREADS 5void* say_hello(void* args){ s... 阅读全文

posted @ 2015-04-24 21:23 雨渐渐 阅读(251) 评论(0) 推荐(0) 编辑

网站排名
摘要:http://www.7a.com.cn/ 阅读全文

posted @ 2015-04-22 21:15 雨渐渐 阅读(98) 评论(0) 推荐(0) 编辑

c++ 私有函数 头文件设计
摘要:clock.h#ifndef CLOCK_H_INCLUDED#define CLOCK_H_INCLUDEDclass Clock{public: static void HandleExdataResponse(..........); 静态成员实现方式跟其他函数一样。只需在这里标明为sta... 阅读全文

posted @ 2015-04-22 14:51 雨渐渐 阅读(801) 评论(0) 推荐(0) 编辑

c++ 发布动态.so
摘要:原文地址 代码改变世界Posts - 105, Articles - 0, Comments - 1561CnblogsDashboardLogoutHomeContactGalleryRSS吴秦(Tyler) C++静态库与动态库2013-10-16 20:18 by 吴秦, 24851 阅读... 阅读全文

posted @ 2015-04-20 18:28 雨渐渐 阅读(6509) 评论(0) 推荐(0) 编辑

内存泄露 memory leak 的原因
摘要:#include using namespace std;void foo(){ MyClass *x; x = new MyClass(); //指向的丢失了 两种解决方法: return x; delete[] x; x = NULL; return 0;}i... 阅读全文

posted @ 2015-04-19 13:02 雨渐渐 阅读(150) 评论(0) 推荐(0) 编辑

查网卡信息(千M o 万M)
摘要:ethtoo 命令 需要root权限~ 阅读全文

posted @ 2015-04-14 16:59 雨渐渐 阅读(146) 评论(0) 推荐(0) 编辑

gcc命令
摘要: 阅读全文

posted @ 2015-04-12 10:15 雨渐渐 阅读(120) 评论(0) 推荐(0) 编辑

不对吧~
摘要:穆里尼奥特意提到了弗格森,他称正是老爵爷让他懂得了尊重对手和公平比赛的含义。2004年的欧冠联赛,穆里尼奥率领波尔图在第90分钟绝杀曼联,这次系列赛也是他和老爵爷的第一次正面交锋,回忆起这段往事,穆帅心中却满是对弗格森的敬重之情:“正是那场比赛让我知道了,像弗格森这样伟大的人具有着两面性。他首先是一... 阅读全文

posted @ 2015-04-11 10:24 雨渐渐 阅读(213) 评论(0) 推荐(0) 编辑

http://blog.csdn.net/itplus/article/details/10088625
摘要:http://blog.csdn.net/itplus/article/details/10088625 DBSCAN 阅读全文

posted @ 2015-04-10 11:17 雨渐渐 阅读(150) 评论(0) 推荐(0) 编辑

c++ 队列
摘要:#include #include using namespace std;int main(){ int e,n,m; queue q1; for(int i=0;i<10;i++) q1.push(i); if(!q1.empty()) cout... 阅读全文

posted @ 2015-04-08 20:00 雨渐渐 阅读(90) 评论(0) 推荐(0) 编辑

17:特殊类成员:函数指针5
摘要:1, 函数首地址被赋值给了函数名,故函数名是函数内存地址的首地址。2, 一个指向函数的指针|必须确保该函数被定义 | |且分配了内存 |否则他将指向一个空地址,这是指针的大忌。3,long(*func)(int) : 声明了一个指针,该指针指向一个函... 阅读全文

posted @ 2015-04-06 15:24 雨渐渐 阅读(135) 评论(0) 推荐(0) 编辑

c++ deque 双端队列
摘要:双端队列:函数描述c.assign(beg,end)c.assign(n,elem)将[beg; end)区间中的数据赋值给c。将n个elem的拷贝赋值给c。c.at(idx)传回索引idx所指的数据,如果idx越界,抛出out_of_range。c.back()传回最后一个数据,不检查这个数据是否... 阅读全文

posted @ 2015-04-06 11:23 雨渐渐 阅读(459) 评论(0) 推荐(0) 编辑

18:字符串-char型字符串
摘要:1 什么是字符串?字符串是以空字符(\0)结尾的字符数组。空字符的assii码为:0, 空格的ascii码为322 \0的作用'\0'是一个空字符标志,它的ASSII码为0,C++有好多处理字符串的函数,都以'\0'为结束标记。 也就是以空字符为结束标记,比如cin,cout。它们都以空字符为结束标... 阅读全文

posted @ 2015-04-05 19:48 雨渐渐 阅读(631) 评论(0) 推荐(0) 编辑

c++ 16 this 和 继承 及继承机制中的构造函数 与 析构函数
摘要:#include #include using namespace std;class Animal{public: Animal(); Animal(string name); string mouth; void eat(); void sleep(); vo... 阅读全文

posted @ 2015-04-03 21:09 雨渐渐 阅读(214) 评论(0) 推荐(0) 编辑

c++ string char* const char*
摘要:#include #include #include using namespace std;int main(){ { string s = "tom and jerry"; const char* c_s = s.c_str(); cout ... 阅读全文

posted @ 2015-04-02 15:38 雨渐渐 阅读(184) 评论(0) 推荐(0) 编辑

c++ 小片段
摘要:void test_string(){ string sen = "Connection will be closed if there is no " "read/write operations during the last 'idle_timeo... 阅读全文

posted @ 2015-04-02 10:42 雨渐渐 阅读(147) 评论(0) 推荐(0) 编辑

导航