.. and so on.
I was able to write the program before I realised I needed to access this list and read it from there. Im brand new to programming, and I have experienced with strings a bit, but not really input output. I hate to blame my prof for anything, but this is the first class shes ever taught, and wont answer any of my emails, so I have received next to no help, so I decided to look for help on the internet instead. I understand the algorithm I need to use, I just dont know enough to know how to open the file, and compare the user inputted date to the strings in the file, and return the certain one.
Should I use ifstream? for example
ifstream months; months.open(filename.txt)
Beacuse my current understanding of ifstream is that it just takes some inputs from a file, it doesnt just read off of it. I also understand I should use getLine, and String.find functions (as I was instructed to). Im pretty lost, so any and all help would be appreciated.