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

📄 eostdoutmonitor.cpp

📁 这是linux下的进化计算的源代码。 === === === === === === === === === === === ===== check latest news at http:
💻 CPP
字号:
#ifdef _MSC_VER// to avoid long name warnings#pragma warning(disable:4786)#endif #include <iostream>#include <fstream>#include <stdexcept>#include <utils/eoStdoutMonitor.h>#include <utils/compatibility.h>#include <utils/eoParam.h>using namespace std;eoMonitor& eoStdoutMonitor::operator()(void){    if (!cout)    {        string str = "eoStdoutMonitor: Could not write to cout";        throw runtime_error(str);    }    if (firsttime)    {      if (verbose)        cout << "First Generation" << endl;      else	{	  for(iterator it = vec.begin(); it != vec.end(); ++it)	    {	      cout << (*it)->longName() << delim;	    }	  cout << endl;	}        firsttime = false;    }    // ok, now the real saving. write out    if (verbose)      {      for(iterator it = vec.begin(); it != vec.end(); ++it)	{	  cout << (*it)->longName() << ": " << (*it)->getValue() << '\n';	}      cout << "\n****** End of Generation ******\n" << endl;      }    else			// a one-liner      {	for(iterator it = vec.begin(); it != vec.end(); ++it)	  {	    cout << (*it)->getValue() << delim;	  }	cout << endl;      }    return *this;}

⌨️ 快捷键说明

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