- 博客(4)
- 资源 (8)
- 收藏
- 关注
原创 TCP send笔记
1、阻塞模式下,发送缓冲区满,send会一直等待,直到数据发送出去;2、非阻塞模式下,发送缓冲器满,send会返回错误信息,应用程序需要自行处理。
2018-03-24 10:01:41 222
原创 快速排序算法
#include <iostream>#include <ctime>int Partition(int a[], int low, int high) { int key = a[low]; int l = low, h = high; while(l < h) { while(h > l && a[h] >...
2018-03-15 08:22:48 136
原创 直接插入排序
void StraightInsertSort(int[] a, int n) { for(int i = 1; i < n; ++i) { int key = a[i], j = i-1; while(j >= 0 && a[j] > key) { a[j+1] = a[j]; j--; ...
2018-03-14 16:15:46 123
转载 windows消息机制要点
Windows消息机制要点1. 窗口过程 每个窗口会有一个称为窗口过程的回调函数(WndProc),它带有四个参数,分别为:窗口句柄(Window Handle),消息ID(Message ID),和两个消息参数(wParam, lParam), 当窗口收到消息时系统就会调用此窗口过程来处理消息。(所以叫回调函数) 2 消息类型 1) 系统定义消息(System-D...
2018-03-04 10:00:29 255
mysql 8.0 reference manual
2018-12-24
Beej's Guide to Network Programming Using Internet Sockets
2018-10-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人