Afternoon, for my c++ class I am taking, we are tasked with reading from a file of people that gives us the city, state, and zipcode of those people. The file is in the format of:
City (then a tab) State (then a tab, and the State is in the PA form) Zip Code
what we have to do is first, tell the user if the file is open, then read how many lines are in the file, and also, if there are any people from PA, NJ, MD and how many there are of those people each. Where I am stuck is telling how many people are from each state, town, and how many zip codes have hyphenes. This is what I currently have (it reads how many lines the file has basically)