help.cc
来自「贝叶斯优化算法是一种新的演化算法」· CC 代码 · 共 49 行
CC
49 行
// ################################################################################
//
// name: help.cc
//
// author: Martin Pelikan
//
// purpose: help (arguments description, input file parameters description)
//
// last modified: February 1999
//
// ################################################################################
#include "help.h"
#include "getFileArgs.h"
// ================================================================================
//
// name: help
//
// function: prints out help (either command line parameters description or
// input file parameters description)
//
// parameters: what.........the type of help
// (0...general command line parameters)
// (1...input file parameters description)
// params.......an array of ParamStruct items (that are to printed
// out the description of eventually)
//
// returns: (int) 0
//
// ================================================================================
int help(char what, ParamStruct *params)
{
if (what==0)
{
printf("Command line parameters:\n");
printf("-h display this help screen\n");
printf("<filename> configuration file name\n");
printf("-paramDescription print out the description of all parameters in configuration files\n");
}
else
{
printParamsDescription(stdout,params);
}
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?