/* This program is from lab 5, meant to demonstrate how to read in from a file with several different types of data. */ /* gcc -o lunatics.exe lunatics.c */ #include #define NCASES 14 main(){ int i; char county[NCASES][11]; int nbr[NCASES]; double dist[NCASES], pop[NCASES], pden[NCASES], phome[NCASES]; FILE *fp; fp = fopen("lunatics.dat","r"); for(i=0; i