Description: # Include color maps <stdio.h># Include <stdlib.h># Define MAX 100 typedef struct {int code int color } Area /* regional structure*/typedef struct {Area a [MAX] int vn int en } Map /* map structure*/void CreateM (Map m) /* generate a map, and unified into one color*/{int i printf (" \ nIntput vn en" ) scanf (" d d" , & m.vn, & m.en) for (i = 0 i <m.vn i++)
{m.a[i].code=i
m.a[i].color=0
printf("\nInput an area s name")
gets(m.a[i].name)
}
}
To Search:
File list (Check if you may need any files):
color map.cpp