![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C\C++
文章平均质量分 72
King-duo
freedom
展开
-
在VS2012中可使用的C++11的新特性
本文章转载自http://blog.csdn.net/hzyong_c/article/details/8273884,尊重版权,自己感觉不错,主要用于收藏 最近学习了C++11的新特性,将学习内容整理下来以巩固记忆,C++11的新特性,可以分为两部分,第一部分是C++11核心语言的特性,第二部分是STL标准库的新特性。学习C++11主要参考了wiki上的一篇文章,在介绍右值引用的时候转载 2015-01-26 17:11:04 · 3875 阅读 · 0 评论 -
Linux下的socket网络编程(1)
模仿服务器端与客户端之间的通信: 服务器端实现多进程返回客户端的输入信息的功能。 客户端实现数据的写入传输了打印。 服务器端:#include #include #include #include #include #include #include #include #include #define ERR_EXIT(m)\ //宏定义原创 2015-04-14 22:36:59 · 304 阅读 · 0 评论 -
用数组实现的队列
ArrayQueue.h/*****************************************************************************program: to come true ArrayQueue*autor: kingduo*date: 2015/4/21 First Realse******************************原创 2015-04-21 19:50:50 · 318 阅读 · 0 评论 -
自己实现的链表(单链表、双链表)
近期学习的算法与数据结构自己按照原理实现的单链表List.h:/*******************************************************************program: to come true the struct of list*autor: kingduo*date: 2015/4/18 First Release********原创 2015-04-21 19:45:22 · 365 阅读 · 0 评论 -
将输入的字符串反转
今天去上机实验,竟然被字符串反转难倒了,查了下资料,原来string没有支持获得包括‘ ’空格字符的字符串长度函数,其中的getline()函数容错性差。所以还是需要通过数组来规定大小一个一个实现。不过突然想到了链表是不限制大小的,因此自己决定用链表来实现字符串反转。代码:#include #include using namespace std;int main(void){原创 2015-04-22 18:12:03 · 952 阅读 · 0 评论 -
Linux下的socket编程(2)
使用socket实现点对点聊天功能p2p服务器端:#include #include #include #include #include #include #include #include #include #include #define PORT 8080#define ERR_EXIT(m)\ do \ {\ perror(m); \原创 2015-04-25 23:29:50 · 342 阅读 · 0 评论 -
用类创建链队列
队列先进先出,指定头结点和尾节点,头结点出队列,尾节点如队列Node.h:#ifndef NODE_H#define NODE_Hclass Node{public: char value; Node* next;};#endifLinkQueue.h:/******************************************************原创 2015-05-05 22:11:44 · 395 阅读 · 0 评论 -
用类创建二叉搜索树
二叉树:一个父节点只能有两个或两个一下孩子节点二叉搜索树:在二叉输的基础上中序遍历是按从大到小的顺序排列Node.h:#ifndef NODE_H#define NODE_Htemplate class Node{public: T content; Node *left; Node *right;};#endifTree.h:/************原创 2015-05-17 17:36:14 · 391 阅读 · 0 评论 -
QTCreator2.8.0+Qt Open source 4.8.5环境配置(Win7x64)
原文http://blog.csdn.net/bestgonghuibin/article/details/38933141收藏开始使用QT时,环境配置好了,以后才不会有这方面的麻烦,所以第一步,把自己的工作环境搭建好! 下面是我的环境搭建过程,留个记录,也为了后来者能少走一些弯路。注:本人的系统是WIN7x64位的,其他系统没有尝试过,所以不保证其他系统使用本教转载 2015-04-04 08:18:07 · 625 阅读 · 0 评论 -
Qt Creator Window平台的安装
准备Qt Creator :qt-creator-windows-opensource-3.0.0.exe MinGW-gcc440_1 Gcc qt-win-opensource-4.8.4-mingw.exe 安装步骤: 1.安装Qt creator 到F:/QT 2.解压缩 MinGW-gcc440_1 Gcc,到F:/QT文件夹下转载 2015-03-30 20:08:09 · 453 阅读 · 0 评论 -
链栈的实现
Node节点类:#ifndef NODE_H#define NODE_Hclass Node{public: double value; Node* next; Node* last;};#endiflinkstack.h文件:/**************************************************************************原创 2015-04-28 20:36:11 · 321 阅读 · 0 评论