⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cpp

📁 入侵检测数据检测算法
💻 CPP
字号:
/****************************************************************
 *	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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -