Hey guys, new C++ learner here. I am having an issue with some code I wrote for a simple username + password program. The correct of both username and password are hard-coded in but I'll deal with that when I have a better understanding of the language.
(I have cut out one or two chunks so it's easier to read)
What is happening is as I try return the value of cinValid to main() it seems to always have the value of 0. There is probably an easier way for me to do the loginVerify() but I just can't think of one. Am I making a simple mistake and if so can you point it out to me?