So im using getline and reading from a file, and it was working at first now im getting a weird error. If anyone can help me out that would be awesome... i cant seem to find out what went wrong. Here is the code.
Harry C. Anderson
635 Main Drive, Midville, California 48444
(660) 050-2200
Dick B. Smith
529173860
879 Maple Road, Centralia, Colorado 24222
(312) 000-1000
Harry C. Anderson
925173870
635 Main Drive, Midville, California 48444
(660) 050-2200
So basically its reading the last person first and outputting it weird when i just need it to read the lines and store the info and its making everything else go wrong. Please HELP!