Introduction - If you have any usage issues, please Google them yourself
Map coloring to each city on the map as a point of abstraction, and to every city number, adjacent lines to connect between cities. Accordingly to make adjacency matrix, if the section i and section j cities adjacent cities, the metro [i] [j] = 1, otherwise the metro [i] [j] = 0. Algorithm: In accordance with the code sequence from small to large checks every city, every city on 1-4 from the use of four kinds of color shading, color can be used if the current (ie not with the same colors as the neighboring cities), then coloring Otherwise, the next test colors.
Packet : 5956448dituzhese.rar filelist
新建文件夹\5地图染色\5地图染色.vcproj
新建文件夹\5地图染色\core.cpp
新建文件夹\5地图染色\core.h
新建文件夹\5地图染色\Debug
新建文件夹\5地图染色\res\地图着色.ico
新建文件夹\5地图染色\res\地图着色.rc2
新建文件夹\5地图染色\res
新建文件夹\5地图染色\resource.h
新建文件夹\5地图染色\stdafx.cpp
新建文件夹\5地图染色\stdafx.h
新建文件夹\5地图染色\地图着色.aps
新建文件夹\5地图染色\地图着色.cpp
新建文件夹\5地图染色\地图着色.h
新建文件夹\5地图染色\地图着色.rc
新建文件夹\5地图染色\地图着色Dlg.cpp
新建文件夹\5地图染色\地图着色Dlg.dsp
新建文件夹\5地图染色\地图着色Dlg.dsw
新建文件夹\5地图染色\地图着色Dlg.h
新建文件夹\5地图染色\地图着色Dlg.ncb
新建文件夹\5地图染色\地图着色Dlg.opt
新建文件夹\5地图染色\地图着色Dlg.plg
新建文件夹\5地图染色
新建文件夹\地图着色.exe
新建文件夹