Yes, this is part of a hw problem for class but I just need help in understanding where to go with this, not actual code. I'm given a file that lists lat and long data for states, as well a line that indicates the state (sample shown). The goal is to create a program, using arrays only I believe (not structs), that asks a user to input the state in the command line and the program draws the outline of the state in a window based on the coordinates (drawing is done via a custom library they provide us). I understand the basics of inputing data into an array but I'm at a loss of how to go about dealing with the state labels, and how/if the labels are used selecting the correct data to draw with. Any help would be appreciated. thanks
Code:
WA
122750 49000
117000 49000
117000 46333
116866 46000
119000 46000
122666 45500
122916 46166
123916 46250
124166 47000
124666 48333
122833 48166
122666 47416
122583 47333
122416 47333
122750 49000
-1 -1
ID
117000 49000
116000 49000
116000 48000
114500 46500
...