main.c
来自「数据格式检查算法」· C语言 代码 · 共 34 行
C
34 行
/****************************************************************
* Main routine, Chdata
****************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#include "GetData.h"
extern int getopt(int Argc, char **Argv, char *Str);
extern char *optarg;
main(int Argc, char *Argv[])
{
int Int_Option;
while ( (Int_Option = getopt(Argc, Argv, "f:")) != EOF ) {
switch (Int_Option) {
case 'f':
FileName = optarg;
printf("\tTraining Data File: <%s>\n", FileName);
break;
case '?':
printf("Unrecognised option\n");
exit(1);
}
}
GetNames();
GetData(".data");
printf("\nRead %d Cases (%d Attributes) from %s.data\n", ItemNum+1, AttNum+1, FileName);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?