what i want my final program to do is show a menu to the user to (a) see all the data in highest to lowest price and (b)cheapest price and (c) exit. I know all about menus but i can't figure out how to get my program to use the data in my .csv file? thank you!!
Thanks but I have a question. If my .csv file that contained data such as:
1 2 3 4 5 6
Name City Time of Birth
Jack Daniels London 10/10/1976 6:10:00 am
Tim Adam Denmark 2/11/1988 5:3:00 am
A.J Peters Lagos 10/02/1994 14:22:00 pm
Peeta Vijay Boston 03/02/1994 15:22:00 pm
Andre Gomez Havana 10/09/1980 16:57:00 pm
would it automatically disregard the header "Name, city and Time of birth"? or should I remove them from the .csv file myself?
Also, how would someone who is using my program on another computer be able to access the .csv file? would they have to have the same exact file in their computer as well? with the same address?
would it automatically disregard the header "Name, city and Time of birth"?
Nothing happens automatically. Add another getline before the while loop in order to dismiss the header.
A csv file follows the same rules as any other file. Usually you cannot access files on other computers if they don't share directories or something alike.