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

全部博文(64)

文章存档

2016年(25)

2015年(39)

我的朋友

发布时间:2016-03-01 16:40:05

谷歌官方维护了一个基于go语言的开源项目列表:https://github.com/golang/go/wiki/Projects 其中有非常多的优秀项目值得学习,有几百行代码适合新手阅读的项目,也有大型如nsq、docker等的项目。 下面推荐几款适合学习的项目:1、cache2gohttps://github.com/muesli/cache2go.........【阅读全文】

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

发布时间: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 。 .........【阅读全文】

阅读(1256) | 评论(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);.........【阅读全文】

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

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

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

阅读(1014) | 评论(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.........【阅读全文】

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

登录 注册