winmain.cpp

来自「C人工智能游戏开发的一些实例源代码 C Game development in 」· C++ 代码 · 共 26 行

CPP
26
字号
#include "Globals.h"
#include "Entities.h"
#include "Genetic.h"
#include "Troll.h"
#include <stdlib.h>
#include <iostream.h>
#include <time.h>
#include "Simulation.h"
#include <Windows.h>

int main( int argc, char ** argv )
{
	srand( time( 0 ) );

	DWORD timer = GetTickCount();

	cout << "One moment please..." << endl;

	Genetic ga;
	ga.RunEvolution();

	cout << "Duration of the experiment: " << (double) ( GetTickCount() - timer ) / 1000.0
	     << " seconds." << endl;

	return 0;
}

⌨️ 快捷键说明

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