-
VC++环境下实现图像的缩放
VC++环境下实现图像的缩放 -VC++ Environment realize image zoom
- 2022-07-11 11:59:03下载
- 积分:1
-
ZIgbee Controller
它是用来控制Zigbee控制器从两侧串行输入和输出! ;
- 2022-07-22 19:57:22下载
- 积分:1
-
pivotal game c c code for school help
贪食蛇游戏的c代码 对学c有帮助-pivotal game c c code for school help
- 2022-08-13 01:46:39下载
- 积分:1
-
email的发送 简单有注释
email的发送 简单有注释,运用smtp邮件发送类的特点发送,附有附件发送功能 很适合初学者借阅
- 2023-03-09 08:45:03下载
- 积分:1
-
一个产生程序序列号的范例
一个产生程序序列号的范例-a sequence of a process model
- 2022-04-29 12:57:59下载
- 积分:1
-
一个线程池的一个类,基本使用如下:
一个线程驰的类, 下面的是基本的使用方法 struct TSession { SOCKET socket int id } class myIocp:public CIOCP { public: void OnRead(void * p, char * buf, int len) void OnAccept(SOCKET socket) void OnClose(void * p) } void myIocp::OnAccept(SOCKET socket) { TSession *s = new TSession s->socket = socket //这里可以对连接的session进行自己的操作,例如给id找一个唯一的值 SetIoCompletionPort(socket, s) // 使连接socket与一个自定义结构体关联 } void myIocp::OnRead(void * p, char * buf, int len) { TSession *s = (TSession *)p send(s->socket, buf, len, 0) // 这里只是简单的把收到的消息返回给客户端 ... } void myIocp::OnClose(void * p) { delete p } myIoncp iocp main() { ... iocp.listen(4311) // 开始监听网络端口,等待客户端连接 ... }-A class for thread pool,basic usage below:
struct TSession { SOCKET socket int id } class myIocp:public CIOCP
{ public:
void OnRead(void* p, char* buf, int len)
void OnAccept(SOCKET socket)
void OnClose(void* p) }
void myIocp::OnAccept(SOCKET socket)
{ TSession*s = new TSession s->socket = socket
//here you can do something about connecti
- 2022-07-17 05:14:52下载
- 积分:1
-
奥莱理
OReilly - COM and .NET Component Services Source Code-OReilly- COM and. NET Component Services Source Code
- 2022-05-13 03:11:23下载
- 积分:1
-
编写一个学生类,包含属性有:学号、姓名、性别、年龄等。将5个学生对象存储在一个数组中,实现如下操作:
(1)根据学号查询某个学生;
(2)将...
编写一个学生类,包含属性有:学号、姓名、性别、年龄等。将5个学生对象存储在一个数组中,实现如下操作:
(1)根据学号查询某个学生;
(2)将所有学生的年龄增加一岁;
(3)按数组中顺序显示所有学生信息;
(4)将所有学生按照年龄由小到大排序输出。
-The preparation of a student category, including the attributes are: school number, name, gender, age and so on. Five students will be stored in an array of objects, the realization of the following steps: (1) No. According to learn a student inquiries (2) All students will increase one-year-old age (3) by an array of all students in the order of display information (4) all students will sort the output in accordance with the age from small to big.
- 2023-05-07 07:00:03下载
- 积分:1
-
libcurl for windows automobile
libcurl is a free and easy-to-use client-side URL transfer library, supporting DICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, Telnet and TFTP. libcurl supports SSL certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, user+password authentication (Basic, Digest, NTLM, Negotiate, Kerberos), file transfer resume, http proxy tunneling and more!
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-07-05 07:28:10下载
- 积分:1
-
KiWaitOutListhead,KiDispatcherReadyListHead,分别是两条阻塞链,一条就绪链表,当线程获得CPU执行的时候,系统分配一个...
KiWaitOutListhead,KiDispatcherReadyListHead,分别是两条阻塞链,一条就绪链表,当线程获得CPU执行的时候,系统分配一个时间片给线程,当发生一次时钟中断就从分配的时间片上减去一个时钟中断的值,如果这个值小于零了也就是时间片用完了,那么这个线程根据其优先级载入到相应的就绪队列末尾。KiDispatcherReadyListHead是一个数组链的头部,在windows 2000中它包含有32个队列,分别对应线程的32个优先级。如果线程因为同步,或者是对外设请求,那么阻塞线程,让出CPU的所有权,加如到阻塞队列里面去。CPU从就绪队列里面,按照优先权的前后,重新调度新的线程的执行。当阻塞队列里面的线程获得所需求的资源,或者是同步完成就又重新加到就绪队列里面等待执行。 -err
- 2022-08-14 09:24:06下载
- 积分:1