Chinaunix首页 | 论坛 | 博客
  • 博客访问: 174077
  • 博文数量: 64
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 616
  • 用 户 组: 普通用户
  • 注册时间: 2015-06-09 20:25
文章分类

全部博文(64)

文章存档

2016年(25)

2015年(39)

我的朋友

发布时间:2016-02-23 13:50:25

2、全部11种状态    2.1、客户端独有的:(1)SYN_SENT (2)FIN_WAIT1 (3)FIN_WAIT2 (4)CLOSING (5)TIME_WAIT 。    2.2、服务器独有的:(1)LISTEN (2)SYN_RCVD (3)CLOSE_WAIT (4)LAST_ACK 。 .........【阅读全文】

阅读(1245) | 评论(0) | 转发(0)

发布时间:2016-02-22 19:37:08

class Node{public:int data;Node *parent;Node *left;Node *right;public:Node() : data(-1), parent(NULL),left(NULL),right(NULL){};Node(int num) :data(num),parent(NULL),left(NULL),right(){};};class Tree{public:Tree(int num[],int len);void insertNode1(int data);void insertNode(int data);.........【阅读全文】

阅读(1201) | 评论(0) | 转发(0)

发布时间:2016-02-19 16:38:29

一、私有继承1.两个类之间的继承关系为私有,编译器一般不会讲派生类对象转换成基类对象2.此部分私有基类继承而来的成员都成为了派生类的私有成员。#include using namespace std;class Person{public:void eat(){cout......【阅读全文】

阅读(1008) | 评论(0) | 转发(0)

发布时间:2016-02-19 11:32:06

一、c++静态成员和临时对象#include using namespace std;class human{public:human(){human_num++;}static int human_num;~human(){human_num--;print();}void print(){cout<<"human num is:"<<human_num<<endl;}};int human::human_num = 0;human f1 (human x){x.print();return x;}int mai.........【阅读全文】

阅读(875) | 评论(0) | 转发(0)

发布时间:2016-02-17 19:56:35

一、构造函数可以被重载,因为构造函数可以有很多歌,而且可以带参数     析构函数不行,第一不能带参数,第二只有一个二、构造函数内调用构造函数只是在栈上生成一个临时对象,对自己本身毫无影响三、普通构造函数能够被隐式调用,而explicit构造函数只能被显示调用class Test1{public:Test1(int n).........【阅读全文】

阅读(858) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册