/** * The mmain function for weather data reading * @author gtowell * Created: March 2021 * **/ #include #include #include #include "wweather.h" #ifndef NULL #define NULL (void *)0 #endif WeatherData ** weather; int main(int argc, char const *argv[]) { int count = readFile("temps.txt"); #ifndef MAIN_ARRAY // if using array notation then you do not need this WeatherData **cWeather = weather; #endif for (int i = 0; i < count; i++) { #ifdef MAIN_ARRAY wprinter(weather[i]); #else wprinter(*cWeather); cWeather++; #endif } freeAllWeather(); }