- 博客(9)
- 收藏
- 关注
转载 qsort与插入排序混合优化
<br />class SortOp<br />{ //插入排序<br /> private static void InsertSort(int[] list,int low,int high)<br /> {<br /> for (int i = low; i < high; i++)<br /> {<br /> int t = list[i];<br /> int j =
2010-08-21 02:52:00 412
原创 mailslot又一例
<br />Platform and Performance Considerations<br /> <br />Mailslots on Windows 95, Windows 98, and Windows Me platforms have three limitations that you should be aware of: 8.3-character name limits, inability to cancel blocking I/O requests, and timeout me
2010-07-13 09:17:00 368
原创 mailslot又一例
<br />Platform and Performance Considerations<br /> <br />Mailslots on Windows 95, Windows 98, and Windows Me platforms have three limitations that you should be aware of: 8.3-character name limits, inability to cancel blocking I/O requests, and timeout me
2010-07-13 09:16:00 544
原创 mailslot用法
<br />code number 1:<br /> <br />/*************************************/<br /><br />#include <windows.h><br />#include <tchar.h><br />#include <stdio.h><br /> <br />HANDLE hSlot;<br />LPTSTR SlotName = TEXT("////.//mailslot//sample_mailslot");<br /> <br />
2010-07-13 09:13:00 671
转载 win32平台下互斥锁的实现
<br />// intrinExample.cpp // compile with: /EHsc /O2 // Simple example of using _Interlocked* intrinsics to // do manual synchronization // // Add [-DSKIP_LOCKING] to the command line to disable // the locking. This will cause the threads to execute
2010-07-10 10:26:00 2012 2
转载 Linux下telnet设置
Telnet服务的配置步骤如下: 一、安装Telnet软件包(通常要两个) 1、 Telnet-clIEnt (或 Telnet),这个软件包提供的是 Telnet 客户端程序; 2、 Telnet-server ,这个软件包提供的是 Telnet 服务器端程序; 安装之前先检测是否这些软件包已安装,方法如下: [root@echo root]#rpm –q Telnet或
2010-05-11 08:41:00 304
转载 Using package autoloading in Tcl
Using package autoloading in TclPeter Briggs, November 2002This is a quick write-up of my experiences with setting up packages to use the Tcl "package require" mechanism to automatically load ex
2010-04-09 01:12:00 659
转载 AC状态机简单实现
/* ac算法的实现*/#include #include #include using namespace std;#define MAX_STATE 100 //自动机最大状态数#define MAX_SYMBOL 256 //匹配的字符数 可以匹配所有的ASCII码#define MAX_MODE 20 //最大模式串数int
2010-02-12 03:53:00 1319 1
原创 引自MagicLinux的C代码简单配置文件读取功能(使用需修改)
/*get a int value in configsection - name of sectionkey - name of keyvalue - value of key*/int util_getinfo_int(char *section , char *key , int *nvalue , char * szFileName){ char sz
2009-12-24 23:06:00 445
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人