亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? tfscan.c

?? 用C寫的關于APRIORI算法的程序
?? C
字號:
/*----------------------------------------------------------------------  File    : tfscan.c  Contents: table file scanner management  Author  : Christian Borgelt  History : 04.01.1998 file created            11.03.1998 additional character flags enabled            12.08.1998 function tfs_copy added            01.09.1998 several assertions added            27.09.1998 function tfs_getfld improved            21.10.1998 bug in tfs_sgetc removed            26.11.1998 some function parameters changed to const            04.02.1999 long int changed to int            16.11.1999 number of characters cleared for an empty field            01.12.2000 '\r' made a default blank character            14.07.2001 tfs_sgetc modified, tfs_buf and tfs_err added            19.08.2001 last delimiter stored in TFSCAN structure            11.02.2002 tfs_skip, tfs_reccnt, and tfs_reset added----------------------------------------------------------------------*/#include <stdio.h>#include <stdlib.h>#include <assert.h>#include "tfscan.h"#ifdef STORAGE#include "storage.h"#endif/*----------------------------------------------------------------------  Preprocessor Definitions----------------------------------------------------------------------*//* --- functions --- */#define isblank(c)    tfs_istype(tfs, TFS_BLANK,  c)#define isfldsep(c)   tfs_istype(tfs, TFS_FLDSEP, c)#define isrecsep(c)   tfs_istype(tfs, TFS_RECSEP, c)#define issep(c)      tfs_istype(tfs, TFS_FLDSEP|TFS_RECSEP, c)#define iscomment(c)  tfs_istype(tfs, TFS_COMMENT, c)/*----------------------------------------------------------------------  Functions----------------------------------------------------------------------*/TFSCAN* tfs_create (void){                               /* --- create a table file scanner */  TFSCAN *tfs;                  /* created table file scanner */  int    i;                     /* loop variable */  char   *p;                    /* to traverse character flags */  tfs = (TFSCAN*)malloc(sizeof(TFSCAN));  if (!tfs) return NULL;        /* allocate memory and */  tfs->reccnt = 0;              /* initialize the fields */  tfs->delim  = TFS_EOF;  for (p = tfs->cflags +256, i = 256; --i >= 0; )    *--p = '\0';                /* initialize the character flags */  tfs->cflags['\n'] = TFS_RECSEP;  tfs->cflags['\t'] = tfs->cflags[' '] = TFS_BLANK|TFS_FLDSEP;  tfs->cflags['\r'] = TFS_BLANK;  return tfs;                   /* return created table file scanner */}  /* tfs_create() *//*--------------------------------------------------------------------*/TFSCAN* tfs_dup (const TFSCAN *tfs){                               /* --- duplicate a table file scanner */  TFSCAN *dup;                  /* created duplicate */  dup = (TFSCAN*)malloc(sizeof(TFSCAN));  if (!dup) return NULL;        /* create a new table file scanner */  tfs_copy(dup, tfs);           /* and copy source into it */  return dup;                   /* return created duplicate */}  /* tfs_dup() *//*--------------------------------------------------------------------*/void tfs_copy (TFSCAN *dst, const TFSCAN *src){                               /* --- copy a table file scanner */  int  i;                       /* loop variable */  char *d; const char *s;       /* to traverse the character flags */  assert(src && dst);           /* check arguments */  s = src->cflags +256; d = dst->cflags +256;  for (i = 256; --i >= 0; ) *--d = *--s;}  /* tfs_copy() */             /* copy character flags *//*--------------------------------------------------------------------*/int tfs_sgetc (TFSCAN *tfs, const char *s){                               /* --- get character from string */  int c, code;                  /* character and character code */  if (s) tfs->s = s;            /* if a new string is given, note it */  if (*tfs->s == '\0')          /* if at the end of the old string, */    return -1;                  /* abort the function */  c = (unsigned char)*tfs->s++; /* get the next character */  if (c != '\\')                /* if no quoted character, */    return c;                   /* simply return the character */  c = (unsigned char)*tfs->s++; /* get the next character */  switch (c) {                  /* and evaluate it */    case 'a': return '\a';      /* 0x07 (BEL) */    case 'b': return '\b';      /* 0x08 (BS)  */    case 'f': return '\f';      /* 0x0c (FF)  */    case 'n': return '\n';      /* 0x0a (NL)  */    case 'r': return '\r';      /* 0x0d (CR)  */    case 't': return '\t';      /* 0x09 (HT)  */    case 'v': return '\v';      /* 0x0b (VT)  */    case '0': case '1': case '2': case '3':    case '4': case '5': case '6': case '7':      code = c -'0';            /* --- octal character code */      c    = *tfs->s;           /* get the next character */      if ((c >= '0') && (c <= '7')) code = (code << 3) +c -'0';      else return code;         /* decode second digit */      c    = *++tfs->s;         /* get the next character */      if ((c >= '0') && (c <= '7')) code = (code << 3) +c -'0';      else return c;            /* decode third digit */      tfs->s++;                 /* consume the decoded character */      return code & 0xff;       /* and return the character code */    case 'x':                   /* --- hexadecimal character code */      c = *tfs->s;              /* get the next character */      if      ((c >= '0') && (c <= '9')) code = c -'0';      else if ((c >= 'a') && (c <= 'f')) code = c -'a' +10;      else if ((c >= 'A') && (c <= 'F')) code = c -'A' +10;      else return 'x';          /* decode first digit */      c = *++tfs->s;            /* get the next character */      if      ((c >= '0') && (c <= '9')) code = (code << 4) +c -'0';      else if ((c >= 'a') && (c <= 'f')) code = (code << 4) +c -'a' +10;      else if ((c >= 'A') && (c <= 'F')) code = (code << 4) +c -'A' +10;      else return code;         /* decode second digit */      tfs->s++;                 /* consume the decoded character */      return code;              /* and return the character code */    default:                    /* non-function characters */      if (*tfs->s == '\0') return '\\';      else                 return (unsigned char)*tfs->s++;  }                             /* return character or backslash */}  /* tfs_sgetc() *//*--------------------------------------------------------------------*/int tfs_chars (TFSCAN *tfs, int type, const char *chars){                               /* --- set characters */  int  i, c, d;                 /* loop variable, characters */  char *p;                      /* to traverse character flags */  assert(tfs);                  /* check argument */  if (!chars) return -1;        /* if no characters given, abort */  p = tfs->cflags +256;         /* clear character flags in type */  for (i = 256; --i >= 0; ) *--p &= (char)~type;  for (c = d = tfs_sgetc(tfs, chars); c >= 0; c = tfs_sgetc(tfs, NULL))    tfs->cflags[c] |= (char)type;  /* set character flags */  return (d >= 0) ? d : 0;      /* return first character */}  /* tfs_chars() *//*--------------------------------------------------------------------*/int tfs_getfld (TFSCAN *tfs, FILE *file, char *buf, int len){                               /* --- read a table field */  int  c;                       /* character read */  int  d;                       /* delimiter type */  char *p;                      /* to traverse the buffer */  assert(tfs && file && (!buf || (len >= 0)));  if (!buf) {                   /* if no buffer given, use internal */    buf = tfs->buf; len = TFS_SIZE; }  p = buf; *p = '\0';           /* clear the read buffer and */  tfs->cnt = 0;                 /* the number of characters read */  do {                          /* --- skip leading blanks */    c = getc(file);             /* get the next character */    if (c == EOF) return tfs->delim = (ferror(file)) ? -1 : TFS_EOF;  } while (isblank(c));         /* while the character is blank */  if (issep(c)) {               /* check for field/record separator */    if (isfldsep(c)) return tfs->delim = TFS_FLD;    tfs->reccnt++;   return tfs->delim = TFS_REC;  }                             /* if at end of record, count reocrd */  while (1) {                   /* --- read value */    if (len > 0) {              /* if the buffer is not full, */      len--; *p++ = (char)c; }  /* store the character in the buffer */    c = getc(file);             /* get the next character */    if (issep(c)) { d = (isfldsep(c))  ? TFS_FLD : TFS_REC; break; }    if (c == EOF) { d = (ferror(file)) ? -1      : TFS_EOF; break; }  }                             /* while character is no separator */  while (isblank(*--p));        /* --- remove trailing blanks */  *++p = '\0';                  /* terminate string in buffer */  tfs->cnt = (int)(p -buf);     /* store number of characters read */  if (d != TFS_FLD) {           /* if not at a field separator */    if (d == TFS_REC) tfs->reccnt++;    return tfs->delim = d;      /* if at end of record, count record, */  }                             /* and then abort the function */  while (isblank(c)) {          /* --- skip trailing blanks */    c = getc(file);             /* get the next character */    if (c == EOF) return tfs->delim = ferror(file) ? -1 : TFS_EOF;  }                             /* check for end of file */  if (isrecsep(c)) {            /* check for a record separator */    tfs->reccnt++; return tfs->delim = TFS_REC; }  if (!isfldsep(c))             /* put back character (may be */    ungetc(c, file);            /* necessary if blank = field sep.) */  return tfs->delim = TFS_FLD;  /* return the delimiter type */}  /* tfs_getfld() *//*--------------------------------------------------------------------*/int tfs_skip (TFSCAN *tfs, FILE *file){                               /* --- skip comment records */  int c;                        /* character read */  assert(tfs && file);          /* check the function arguments */  while (1) {                   /* comment read loop */    c = getc(file);             /* read the next character */    if (c == EOF) return tfs->delim = ferror(file) ? -1 : TFS_EOF;    if (!iscomment(c)) {        /* if the next char. is no comment, */      ungetc(c, file); return 0; }         /* put it back and abort */    while (!isrecsep(c)) {      /* while not at end of record */      c = fgetc(file);          /* get and check the next character */      if (c == EOF) return tfs->delim = ferror(file) ? -1 : TFS_EOF;    }                           /* consume/skip all characters */    tfs->reccnt++;              /* up to the end of the record */  }                             /* and count the record read */  return tfs->delim = TFS_REC;  /* return the delimiter type */}  /* tfs_skip() */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美久久久影院| 91精品一区二区三区在线观看| 奇米亚洲午夜久久精品| 国产精品成人午夜| 国产亚洲精品bt天堂精选| 精品福利一区二区三区免费视频| 精品久久久久久综合日本欧美| 日韩一级高清毛片| 精品国产青草久久久久福利| 欧美va亚洲va香蕉在线| 2023国产精华国产精品| 日本一区二区久久| 中文字幕五月欧美| 亚洲高清免费观看| 免费精品视频在线| 国产激情视频一区二区在线观看| 国产成人亚洲综合色影视 | 色综合咪咪久久| 色婷婷综合中文久久一本| 色婷婷久久久亚洲一区二区三区| 在线精品视频免费观看| 337p亚洲精品色噜噜噜| 亚洲精品一区二区三区影院| 国产精品丝袜久久久久久app| 国产精品无遮挡| 洋洋av久久久久久久一区| 日韩精品一卡二卡三卡四卡无卡| 精品在线免费观看| 99久久综合国产精品| 欧美日韩免费观看一区三区| 精品播放一区二区| 亚洲视频狠狠干| 免费一级片91| 99精品视频一区| 日韩小视频在线观看专区| 国产精品午夜在线| 天天色综合天天| 成人午夜av电影| 欧美精品一二三| 中文字幕欧美一| 久久国产精品72免费观看| 91丨porny丨中文| 日韩一区二区在线观看视频播放| 国产偷国产偷亚洲高清人白洁| 亚洲精品久久久蜜桃| 麻豆一区二区三| 91国内精品野花午夜精品| www精品美女久久久tv| 一区二区免费看| 国产99久久久精品| 日韩你懂的在线观看| 亚洲女厕所小便bbb| 精品一区二区三区香蕉蜜桃 | 一区二区免费视频| 国产高清不卡一区| 91精品国产综合久久久蜜臀粉嫩 | 亚洲欧洲日韩一区二区三区| 美女网站一区二区| 欧美亚洲一区二区在线观看| 国产精品―色哟哟| 久久成人18免费观看| 在线国产电影不卡| 中文字幕佐山爱一区二区免费| 麻豆精品一区二区综合av| 欧美三片在线视频观看| 亚洲三级小视频| 99久久精品免费观看| 国产精品天天看| 国产成人av在线影院| 久久久亚洲精品石原莉奈| 日本欧洲一区二区| 91麻豆精品国产91久久久久| 亚洲综合久久av| 欧美在线观看视频一区二区| 亚洲女同ⅹxx女同tv| 91香蕉视频在线| 国产精品久久看| 波多野结衣在线aⅴ中文字幕不卡| 欧美经典一区二区| 国产91高潮流白浆在线麻豆| 欧美国产日韩一二三区| 成人午夜av电影| 亚洲丝袜另类动漫二区| 99re这里都是精品| 一区二区三区中文字幕在线观看| 色综合天天性综合| 亚洲国产成人精品视频| 欧美色倩网站大全免费| 日韩在线卡一卡二| 精品国内片67194| 国产成人午夜电影网| 国产精品电影一区二区三区| 91香蕉视频在线| 五月综合激情婷婷六月色窝| 欧美日韩国产天堂| 久久99日本精品| 国产精品污污网站在线观看| 91麻豆国产在线观看| 午夜av一区二区| 国产日韩欧美精品综合| 99re这里只有精品6| 亚洲综合免费观看高清完整版 | 色婷婷综合久久久中文字幕| 亚洲高清在线精品| 精品久久久久香蕉网| bt欧美亚洲午夜电影天堂| 亚洲乱码中文字幕综合| 欧美一个色资源| 成人激情av网| 青娱乐精品在线视频| 欧美激情在线一区二区三区| 在线精品观看国产| 国产精品99久久久久久有的能看| 日韩美女久久久| 日韩一区二区三| 丁香一区二区三区| 日韩国产精品91| 亚洲日本在线观看| 久久综合色8888| 欧美色网站导航| 成人小视频在线| 日韩av电影天堂| 国产精品久久久久久久久搜平片 | 亚洲午夜精品久久久久久久久| 亚洲精品一区二区三区在线观看 | 午夜精品福利在线| 国产精品欧美极品| 欧美一二三区在线| 91久久国产最好的精华液| 狠狠色伊人亚洲综合成人| 亚洲综合在线电影| 亚洲欧洲三级电影| 久久精品一区二区三区不卡牛牛| 欧美日韩高清在线| 一本色道a无线码一区v| 国产成人av一区| 九色|91porny| 伦理电影国产精品| 日韩成人av影视| 婷婷国产v国产偷v亚洲高清| 一区二区三区中文字幕电影| 国产精品国产精品国产专区不蜜| 久久亚洲捆绑美女| 欧美大片日本大片免费观看| 欧美精品日韩综合在线| 欧美性一区二区| 欧美亚洲一区二区在线观看| 91美女片黄在线观看91美女| 成人av网在线| av在线播放成人| av不卡在线观看| 91社区在线播放| 99re视频这里只有精品| 99精品一区二区三区| 99国产精品久久久久久久久久久| 成人免费观看av| hitomi一区二区三区精品| a级高清视频欧美日韩| 成人精品视频.| 99久久精品情趣| 日本黄色一区二区| 欧美性猛交xxxxxxxx| 欧美色电影在线| 日韩一区二区中文字幕| 日韩欧美国产三级| 久久久影院官网| 中文字幕一区二区三区不卡在线| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 中文字幕国产一区| 亚洲婷婷综合久久一本伊一区| 亚洲欧美日韩国产综合| 亚洲高清不卡在线观看| 蜜桃精品在线观看| 国产很黄免费观看久久| 成人av综合在线| 精品视频在线看| 精品国产乱码久久久久久老虎| 久久久精品影视| 日韩一区中文字幕| 日韩精品电影一区亚洲| 国产又粗又猛又爽又黄91精品| 成人av网站在线观看免费| 欧美四级电影网| 欧美精品一区二区三区在线播放 | 91精品福利在线一区二区三区 | 国产日韩精品一区二区三区 | 亚洲综合精品自拍| 久久福利视频一区二区| 成人va在线观看| 日韩一级成人av| **欧美大码日韩| 精品一区二区久久| 色婷婷亚洲一区二区三区| 精品久久久久久综合日本欧美| 亚洲三级久久久| 国产一区二区免费视频| 欧美三片在线视频观看| 国产人伦精品一区二区| 日本中文在线一区| aa级大片欧美|