C++面试题
文章平均质量分 72
Just_Tao
这个作者很懒,什么都没留下…
展开
-
链表相关
#include "stdafx.h"#includeusing namespace std;struct linklist { struct linklist* next; int data;};linklist *create();//链表建立void remove(linklist *head);//去除重复项linklist *findnthlast(lin原创 2014-09-05 16:25:57 · 389 阅读 · 0 评论 -
检测字符串是否在另一个字符串中存在(即检测字串问题)
char* StrStr(const char* str, const char* substr){char* pStr1 = (char*)str;char* pStr2, *pSubstr;if (str == NULL || substr == NULL)return (char*)str;while (*pStr1 != '\0'){pSub转载 2014-09-03 15:40:48 · 845 阅读 · 0 评论 -
TCP协议三次握手过程分析与四次挥手分析
转自http://www.cnblogs.com/CBDoctor/archive/2012/10/17/2727073.htmlTCP协议三次握手过程分析TCP(Transmission Control Protocol) 传输控制协议TCP是主机对主机层的传输控制协议,提供可靠的连接服务,采用三次握手确认建立一个连接:位码即tcp标志位,有6种标示:SYN(synchr转载 2014-09-14 22:06:50 · 746 阅读 · 0 评论