![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c語言知識
文章平均质量分 79
laocxt
这个作者很懒,什么都没留下…
展开
-
poll函數
原型:int poll(struct pollfd fdarray[], nfds_t nfds, int timeout) 其中poll函数中,结构pollfd如下: struct pollfd{ int fd; //file descriptor short event;//event of interest on fd short revent;原创 2013-01-30 20:10:43 · 335 阅读 · 0 评论 -
get_conf
#ifndef _GET_CONFIG_H_#define _GET_CONFIG_H_ #include #include using namespace std; #define COMMENT_CHAR '#' bool ReadConfig(const string & filename, map & m);void PrintConfig(cons原创 2013-04-13 22:57:46 · 585 阅读 · 0 评论 -
服務程序
http://www.vckbase.com/index.php/wv/1193//服务程序主函数。//#include "stdafx.h"#include "Windows.h"#include "Tchar.h"#include #define SZAPPNAME "serverSample" //服务程序名#defi原创 2013-04-14 22:44:28 · 417 阅读 · 0 评论 -
MessageBox用法
一 函数原型及参数 function MessageBox(hWnd: HWND; Text, Caption: PChar; Type: Word): Integer; hWnd:对话框父窗口句柄,对话框显示在Delphi窗体内,可使用窗体的Handle属性,否则可用0,使其直接作为桌面窗口的子窗口。 Text:欲显示的信息字符串。Caption:对话框标题字符串。 Type:原创 2013-04-26 15:03:37 · 570 阅读 · 0 评论 -
計算當前時間到1970的秒數
#pragma onceconst long nSecondsInJan = 2678400L; // 1月的总秒数const long nSecondsInApril = 2592000L; // 4月的总秒数const long nSecondsInLeapFeb = 2505600L; // 2月(闰)的总秒数const long nSecondsInNonLeapFeb = 24原创 2013-10-18 23:03:12 · 821 阅读 · 1 评论