check_header_float.cc
来自「c++编写的并行拉马克遗传算法的程序。实现分析对接程序」· CC 代码 · 共 35 行
CC
35 行
/* check_header_float.cc */#ifdef sgi #include <stdio.h> #include "stop.h" #include "check_header_float.h"#else extern "C" { #include <stdio.h> #include "stop.h" #include "check_header_float.h" }#endifextern char *programname;extern FILE *logFile;void check_header_float( float f1, float f2, char keyword[], char filename[] ){ if ( f1 != f2 ) { fprintf(logFile, "Wrong %s in grid-map file \"%s\".\n", keyword, filename); fprintf(stderr, "%s: Wrong %s in grid-map file \"%s\".\n", programname, keyword, filename); fprintf(logFile, "Use either %.3f or %.3f throughout!\n\n", f1,f2); fprintf(stderr, "%s: Use either %.3f or %.3f throughout!\n", programname, f1,f2); stop("Using wrong grid-map file.\n"); }}/* EOF */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?