header.cc

来自「PostsBayesian Optimization Algorithm wit」· CC 代码 · 共 56 行

CC
56
字号
// ################################################################################//// name:          header.cc      //// author:        Martin Pelikan//// purpose:       prints out the header saying the name of the product, its author,//                the date of its release, and the file with input parameters (if //                any)//// last modified: February 1999//// #################################################################################include <stdio.h>#include "header.h"#include "startUp.h"// ================================================================================//// name:          printTheHeader//// function:      prints out the product name, its author, its version, and the//                date of its realease//// parameters:    out..........output stream//// returns:       (int) 0//// ================================================================================int printTheHeader(FILE *out){  // is output stream non-null?  if (out==NULL)    return 0;  // print the header to the output file  fprintf(out,"\n===============================================\n");  fprintf(out," Simple Bayesian Optimization Algorithm in C++\n");  fprintf(out," Version 1.0 (Released in March 1999)\n");  fprintf(out," Copyright (c) 1999 Martin Pelikan\n");  fprintf(out," Author: Martin Pelikan\n");  fprintf(out,"-----------------------------------------------\n");  fprintf(out," Parameter values from: %s\n",(getParamFilename())? getParamFilename():"(default)");  fprintf(out,"===============================================\n");  fprintf(out,"\n");  // get back  return 0;};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?