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

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

?? tfscan.c

?? apriori算法是數據挖掘的經典算法之1,其基于關聯規則的思想.這是我的第2個收藏算法
?? 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一区二区三区免费野_久草精品视频
国产成人av资源| 亚洲综合无码一区二区| 中文字幕一区二区三区精华液 | 欧洲一区在线电影| 欧美日韩一区二区三区在线看| 91精品国产麻豆| 欧美激情一区二区三区四区| 亚洲欧美偷拍三级| 男男成人高潮片免费网站| 国产成人精品免费在线| 色噜噜狠狠色综合中国| 日韩精品一区二区在线| 亚洲欧洲综合另类| 蜜臀av性久久久久蜜臀aⅴ| 成人精品亚洲人成在线| 欧美日韩三级一区| 久久精品欧美一区二区三区麻豆| 亚洲欧美日韩一区| 精品一区二区三区在线播放| 91蝌蚪porny| 精品国产91乱码一区二区三区| 亚洲免费在线观看| 黄色资源网久久资源365| 91免费视频网| 久久夜色精品国产噜噜av| 一区二区三区电影在线播| 国产在线不卡一卡二卡三卡四卡| 日本韩国一区二区| 久久久久国产成人精品亚洲午夜| 亚洲香肠在线观看| 99视频在线精品| 精品成人在线观看| 亚洲成人在线免费| 色国产精品一区在线观看| wwwwxxxxx欧美| 午夜精品在线看| 91影院在线免费观看| 久久久亚洲精品一区二区三区 | 欧美日韩高清一区二区三区| 国产精品女同互慰在线看| 久久精品国产精品亚洲精品| 欧美主播一区二区三区美女| 国产精品黄色在线观看| 老司机免费视频一区二区三区| 色婷婷狠狠综合| 国产精品麻豆视频| 国产在线精品视频| 欧美一级日韩免费不卡| 亚洲最色的网站| av中文一区二区三区| 国产午夜精品福利| 久久99精品国产麻豆婷婷| 欧美性猛交一区二区三区精品 | 欧美午夜片在线看| 中文字幕日韩一区| 国产精品一二三四区| 首页亚洲欧美制服丝腿| 91精品福利在线| 日韩毛片一二三区| 成人夜色视频网站在线观看| 久久久久久久综合色一本| 久久99热这里只有精品| 91精品久久久久久蜜臀| 亚洲福利一区二区三区| 91视频.com| 亚洲欧洲另类国产综合| 成人黄色国产精品网站大全在线免费观看 | 精品日韩99亚洲| 毛片av一区二区| 日韩视频一区二区三区在线播放| 亚洲大片在线观看| 欧美三级日本三级少妇99| 亚洲主播在线播放| 欧美私模裸体表演在线观看| 亚洲日本va午夜在线电影| 91亚洲国产成人精品一区二三| 国产精品久久久久婷婷| 大桥未久av一区二区三区中文| 久久精品人人爽人人爽| 成人亚洲精品久久久久软件| 国产日产欧产精品推荐色 | 国产成人精品三级| 中文字幕av资源一区| 成人综合激情网| 国产精品色呦呦| eeuss影院一区二区三区| 国产精品传媒入口麻豆| 97久久精品人人爽人人爽蜜臀| 中文字幕综合网| 欧美性生活久久| 三级久久三级久久| 久久影院午夜论| 成人激情午夜影院| 日韩理论片中文av| 欧美日韩在线综合| 另类小说综合欧美亚洲| 久久久国产精品麻豆| 成人视屏免费看| 亚洲综合在线免费观看| 欧美精品粉嫩高潮一区二区| 久久91精品国产91久久小草| 国产亚洲一区二区三区| 91麻豆精品秘密| 日韩av一二三| 国产午夜精品久久久久久久| 91同城在线观看| 肉丝袜脚交视频一区二区| 久久亚洲一区二区三区四区| 高清不卡一区二区在线| 亚洲一区二区四区蜜桃| 美女视频第一区二区三区免费观看网站| 2021久久国产精品不只是精品| 不卡的电影网站| 亚洲成人精品在线观看| 亚洲精品一区在线观看| 91在线观看高清| 久久av中文字幕片| 中文字幕亚洲区| 91麻豆精品国产91久久久久| 国产酒店精品激情| 艳妇臀荡乳欲伦亚洲一区| 精品国产免费视频| 在线精品视频一区二区三四 | 日本一二三四高清不卡| 欧美三级电影在线看| 韩国一区二区三区| 亚洲影视资源网| 久久精品水蜜桃av综合天堂| 欧美性猛交xxxxxxxx| 国产乱码精品一区二区三| 亚洲黄色免费电影| 久久久久久久免费视频了| 欧美羞羞免费网站| 国产成人亚洲精品青草天美| 图片区小说区国产精品视频| 国产精品丝袜一区| 日韩一区二区电影| 91传媒视频在线播放| 国产成人精品午夜视频免费| 日韩和欧美一区二区三区| 国产精品看片你懂得| 精品久久久久久久久久久久久久久 | 精品日本一线二线三线不卡| 色乱码一区二区三区88| 国产成人精品三级麻豆| 蜜桃av一区二区三区| 亚洲欧美日本韩国| 国产偷国产偷亚洲高清人白洁| 7777精品伊人久久久大香线蕉完整版 | 91精品婷婷国产综合久久性色| 91亚洲永久精品| 国产精品一区二区在线观看网站| 天天综合网 天天综合色| 成人免费在线观看入口| 久久久国产一区二区三区四区小说| 欧美精品第一页| 一区二区三区在线免费| 国产日韩欧美综合一区| 欧美电影免费提供在线观看| 日本大香伊一区二区三区| 成人sese在线| 国产激情91久久精品导航| 麻豆91在线看| 日日欢夜夜爽一区| 亚洲电影在线免费观看| 亚洲欧洲制服丝袜| 综合激情成人伊人| 国产精品福利电影一区二区三区四区| 精品国产青草久久久久福利| 日韩欧美成人一区二区| 在线播放国产精品二区一二区四区 | 欧美国产一区二区在线观看| 日韩一区二区精品在线观看| 欧美高清激情brazzers| 欧美视频日韩视频在线观看| 一本大道久久a久久精二百| 99精品偷自拍| 91免费看`日韩一区二区| 91在线精品一区二区| 盗摄精品av一区二区三区| 国产美女视频91| 国产盗摄一区二区| 国产电影一区在线| 懂色av中文字幕一区二区三区| 国产乱码精品一区二区三区忘忧草| 精品一区二区三区欧美| 麻豆一区二区三| 麻豆精品视频在线| 久久99国产精品免费| 久久99久久久欧美国产| 蜜臀99久久精品久久久久久软件| 免费国产亚洲视频| 精品一区二区久久| 国产一本一道久久香蕉| 懂色av一区二区三区蜜臀| 国产成人精品影视| 波多野结衣亚洲| 色哟哟一区二区| 精品视频999| 欧美一卡在线观看|