header.cpp
来自「计算机人工智能方面的决策树方法 c4.5」· C++ 代码 · 共 32 行
CPP
32 行
/*************************************************************************/
/* */
/* Print header for all C4.5 programs */
/* ---------------------------------- */
/* */
/*************************************************************************/
#define RELEASE "5"
#include <stdio.h>
#include <time.h>
#include "string.h"
extern FILE *fpScreen;
void PrintHeader(char * Title)
/* ----------- */
{
char TitleLine[80];
time_t t;
int Underline;
time(&t);
sprintf(TitleLine, "C4.5 [release %s] %s", RELEASE, Title);
fprintf(fpScreen,"\n%s\t%s", TitleLine, ctime(&t));
printf("\n%s\t%s", TitleLine, ctime(&t));
Underline = strlen(TitleLine);
while ( Underline-- ) fputc('-',fpScreen);
fputc('\n',fpScreen);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?