易截截图软件、单文件、免安装、纯绿色、仅160KB

通配符的 C 语言源代码

/* find files from wildcards, for MicroSoft C v4.0 */
/* ------------------------------------------------------------ */
/*   copyright 1986:      */
/*   Nourse Gregg & Browne, Inc.  */
/*   1 Horizon Road. #612   */
/*   Fort Lee, NJ 07024   */
/*        */
/* ------------------------------------------------------------ */
/* ----------------------------------------------------------------------*
 This pair of routines will do a wildcard search
 you must call dfirst() once to supply the search pattern
 and get back the first file that matches that pattern.
 then, call dnext() to get the next file in the list.
 both dfirst() and dnext() return zero if a file has been found,
  non-zero otherwise.
 The calling parameters are as follows:
 dfirst(pattern,attr,file_name,file_date,file_time,file_size);
 dnext(file_name,file_date,file_time,file_size);
     Where:
 char *pattern;  (wild card pattern. eg. "*.c" )
 int   attr;  (the file attribute qualifier )
 char *file_name; (output: the name of found file (13 bytes min.) )
 int  *file_date; (output: the file's date (directory format) )
 int  *file_time; (output: the file's time )
 long *file_size; (output: the file's size in bytes )
*----------------------------------------------------------------- */
#include <dos.h>
#include <stdlib.h>
#define SET_DTA 0x1A
#define GET_DTA 0x2F
#define FIND_FIRST 0x4E
#define FIND_NEXT 0x4F
 struct dta_struct {
 char dummy[21];
 char attr;
 int time;
 int date;
 int low_size;
 int hi_size;
 char name[13];
 char dummy2[14];
 };
static struct dta_struct dta;
dfirst (fmask,fattr,fname,fdate,fti


相关文档:

回忆C古老的math.h库 FreeEIM

回忆C古老的math.h库
概述:
  math.h中为我们提供了三角函数数值运算、指数对数运算、绝对值、平方值、以及一些基本的数值处理。
函数:sin
功能:计算弧度的正弦值。
使用说明:sin(x),x为传入的弧度值。
函数:cos
功能:计算弧度的余弦值。
使用说明:cos(x),x为传入的弧度值。
函数:tan
功能:计算弧度 ......

在 C/C++中如何构造通用的对象链表(不很理解 )


http://blog.csdn.net/hwz119/archive/2007/05/25/1625218.aspx
    您是否做过这样一个项目,它要求您在内存中保存数目不定的若干不同对象?对于某些情况,二叉树是最佳选择,但在通常情况下,更简单的链表是显而易见的选择。
一个简化的问题示例
链表的难点在于必须复制链表处理函数来处理不同的对象 ......

java 捕捉信号(linux下的kill,ctrl+c)

import sun.misc.Signal;
import sun.misc.SignalHandler;
/***
* java信号处理demo
* @author jiang_qh
*
*/
public class SignalHandlerExample implements SignalHandler{
private SignalHandler oldHandler;
public void handle(Signal signal) {
System.out.println("Signal handler called for signal " ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号