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

📄 get_atom_type.cc

📁 c++编写的并行拉马克遗传算法的程序。实现分析对接程序
💻 CC
字号:
/* get_atom_type.cc */#ifdef sgi    #include <stdio.h>    #include "get_atom_type.h"#else    extern "C"    {	#include <stdio.h>        #include "get_atom_type.h"    }#endifextern char *programname;extern FILE *logFile;int get_atom_type( char aname[4], 		   char chtype[ATOM_MAPS] ){    char ch, ch1;    register int i;     int type = -1;    ch1 = aname[0];    ch = (ch1 == ' ') ? aname[1] : ch1;    for ( i=0; i<ATOM_MAPS; i++) {        if (ch == chtype[i]) {            type = i;        }    }        if (type == -1) {        fprintf(stderr, "%s: Atom type error, can't find type for \"%s\" in typelist \"%s\".\n", programname, aname, chtype );    }    return (type);} /* EOF */

⌨️ 快捷键说明

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