#include "stdio.h" #include "exec/types.h" int map[65][65], x, y, size; int gfuels = 0, bfuels = 0, gturrets = 0, bturrets = 0, gflags = 0, bflags = 0; char c, *horf, name[40]; FILE *in; main() { printf("Load (h)alf map or (f)ull map? "); c = getchar(); if (c=='h') { horf = "half"; size = 33; } else if (c=='f') { horf = "full"; size = 65; } else exit(0); printf("Enter name of %s map to display data on: ",horf); gets(name); gets(name); if ((in = fopen(name,"r")) == NULL) { printf("Error opening file.\n"); exit(0); } for (x=1;x