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

📄 help.cc

📁 贝叶斯优化算法是一种新的演化算法
💻 CC
字号:
// ################################################################################
//
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -