I just started learning c++ and am working on a problem that has a data file with 10 rows and 4 columns separated by a semi colon. I need to read the data into a two dimensional array and allow the user to select a line in order to view. This is what I have so far..
I don't think anything from the file is reading into the array and also the user input to view the line should be between 1 and 10.
Here is what the text file looks like:
Google;KyleSmith01@gmail.com;Kyleman27;security question:White rabbit with a watch;
Deviantart;Dragonmaster27;Gandalfthegrey; NULL;
Dragcave.net;Dragonmaster27; DragonM27; Notes: username shortend;
Youtube.com;DragonMaster207; DragonM207; Notes: 207 not 27;
Facebook.com; KyleSmith27; KsmithFB; NULL;
Twitter.com; KyleSmith207; KsmithT; NULL;
Blogger; Kylesmith207; KyleSmith27; Notes: password 27 not 207;
Yahoo.com; KyleSmith.01@gmail.com; kSmith08; yahoo has a . before 01;
Jibjab.com;Kyle.207; KyleSmit.2.7; .2.7;
Dragonworld.com;KyleDragonMaster;DragonMkyle; ;