用遗传算法解决八皇后问题!
有比较详细的注释!
还有有关遗传算法理论的描述。
源代码在线查看: 遗传算法.plg
Build Log
--------------------Configuration: 遗传算法 - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP127.tmp" with contents
[
/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/遗传算法.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
"E:\编程相关\我的程序\C++\八皇后\遗传算法(八皇后)\CgaQueen.cpp"
"E:\编程相关\我的程序\C++\八皇后\遗传算法(八皇后)\CGenome.cpp"
]
Creating command line "cl.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP127.tmp"
Creating temporary file "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP128.tmp" with contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/遗传算法.pdb" /debug /machine:I386 /out:"Debug/遗传算法.exe" /pdbtype:sept
".\Debug\CgaQueen.obj"
".\Debug\CGenome.obj"
".\Debug\遗传算法.obj"
]
Creating command line "link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\RSP128.tmp"
Output Window
Compiling...
CgaQueen.cpp
CGenome.cpp
Linking...
Results
遗传算法.exe - 0 error(s), 0 warning(s)