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

📄 check_header_float.cc

📁 c++编写的并行拉马克遗传算法的程序。实现分析对接程序
💻 CC
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -