Some of the code provided by my teacher makes me doubt what I'm doing (not that I was ever sure):I should be able to use that same "db->list+i" part to check the array, right? I'm just trying to find the first free element to insert my country into...Code:for( i = 0; i < db->ncountries; i++ ) { delete_country( db->list+i ); // free mem alloc to a country }
Data structures are so much easier, but I'm stuck with these parameters!