📄 main.cpp
字号:
/*************************************************************************** main.cpp - description ------------------- begin : Thu Oct 18 19:35:34 CEST 2001 copyright : (C) 2001 by Rudiger Koch email : rkoch@kaiwal.com ***************************************************************************//*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/#include <iostream.h>#include <string>#include "pacman.h"#include "amygdala/types.h"/** * his is the main function of the Pacman program. */int main(int argc, char* argv[]){ Pacman *pacman = new Pacman(); if(argc != 2 ) exit(-1); string uri(argv[1]); try { if(uri.substr(0,4) == string("file")) { // run only one // we need to supply the gene format because we don't get it from the server pacman->GenomeFormat(string("{10,3}{14,4}{8,4}")); pacman->Setup(uri); pacman->Run((AmTimeInt)600E6, 300); } else { pacman->Loop(uri, (AmTimeInt)600E6, 300); } } catch (string e) { cout << "Exception caught. Massage: " << e << endl; delete pacman; exit(-1); } catch (...) { cout << "Unknown exception caught" << endl; delete pacman; exit(-1); } delete pacman; return 0;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -