I am creating a banking application and after working on it pretty much solid for 2 weeks, I am close to completion. I thought creating my menu driver would be the easy part but how wrong could I be?
Anyway...
I have a vector of customers and 1 of my functions searches for a customer by name (user enters the name). It does the string comparison fine although it always enters the "not found" if statement and I can't for the life of me see why.
It did only have 1 element in the previous example I gave, although if it contains more than 1 element, it would output "Not found!Not found!Customer found!"(if it contained 2 elements)
Been working on it for like 8 hours straight now, just want it finished before I go to sleep.
Recently I've been struggling to sleep because I've been coding for hours late at night and then going to bed, and then I'll wake up in the morning and instantly code pops to mind, sad I know, lol.