上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 一、TCP简单介绍 我们经常听人说TCP是一个面向连接的(connection-oriented)、可靠的(reliable)、字节流式(byte stream)传输协议, TCP的这三个特性该怎么理解呢? <!--more--> 面向连接:在应用TCP协议进行通信之前双方通常需要通过三次握手来建立 阅读全文
posted @ 2016-11-07 13:28 lshs 阅读(28469) 评论(10) 推荐(2) 编辑
摘要: 目前ubuntu系统主要有dpkg和apt两种软件管理方式两种区别如下1、dpkg是用来安装.deb文件,但不会解决模块的依赖关系,且不会关心ubuntu的软件仓库内的软件,可以用于安装本地的deb文件。2、apt会解决和安装模块的依赖问题,并会咨询软件仓库, 但不会安装本地的deb文件, apt是... 阅读全文
posted @ 2015-11-28 20:54 lshs 阅读(2197) 评论(0) 推荐(1) 编辑
摘要: 1、父类加了virtual,子类就默认virtual了,加不加都一样2、内联函数是个静态行为,而虚函数是个动态行为,他们之间是有矛盾的。我们只能向编译器建议,某个函数可以是内联函数(inline关键字),但是编译器有自己的判断法则。因此虚函数不会内联umlhttp://blog.csdn.net/s... 阅读全文
posted @ 2015-07-23 20:20 lshs 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 葶苈、马齿苋、荠菜、荔枝草/蛤蟆菜、龙葵(甜甜儿)、莵丝子(豆寄生)转:据调查,昌黎县境有植物900余种,分属139科;其中野生植物600余种,栽培植物300余种。林木(果树)昌黎县境适宜栽植各种各样的林木和果树。林木栽植的主要树种有杨柳科的青杨、毛白杨、小叶杨、加拿大白杨、旱柳等,松科有油松、白皮... 阅读全文
posted @ 2015-07-18 22:46 lshs 阅读(870) 评论(0) 推荐(0) 编辑
摘要: 1、The initial motivation for C++ templates was straightforward: to make it possible to create type-safe containers like vector, list, and map.Ultimate... 阅读全文
posted @ 2015-07-12 10:10 lshs 阅读(285) 评论(0) 推荐(0) 编辑
摘要: Never redefine an inherited non-virtual function1、如下代码通过不同指针调用同一个对象的同一个函数会产生不同的行为The reason for this two-faced behavior is that non-virtual functions... 阅读全文
posted @ 2015-06-22 21:50 lshs 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 1、Furthermore, I explain what the different features in C++ really mean — what you are really expressing when you use a particular construct. For exam... 阅读全文
posted @ 2015-06-14 19:27 lshs 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Strive for exception-safe code.1、如下面的代码class PrettyMenu {public: ... void changeBackground(std::istream& imgSrc); // change background .... 阅读全文
posted @ 2015-06-07 17:29 lshs 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 1、For the most part, coming up with appropriate definitions for your classes (and class templates) and appropriate declarations for your functions (an... 阅读全文
posted @ 2015-06-04 22:59 lshs 阅读(285) 评论(0) 推荐(0) 编辑
摘要: bind简单示例代码namespace{ class placeholder_ {}; placeholder_ __1;} template class simple_bind_t{private: typedef R (T::*F)(Arg); F f_; T* t... 阅读全文
posted @ 2015-06-01 22:38 lshs 阅读(328) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页