Hmm, many very good points here. I was mainly wanting to experiment to see how short I could make my driver program.
mbozzi,
That makes sense, I usually try to write clean, readable code (which is why I sometimes will beat up on people for using "Egyptian braces"), unless I'm in a big hurry or if I'm just making a driver to test some function or other.
thmm,
That makes sense, too. I usually spend an inordinate amount of time trying to debug programs and fix errors left by bad typing, bad logic, bad code, etc etc etc ;)
lastchance,
Hmm, not exactly what I was looking for, but thanks! LOL, I'm not sure if I can return a Bank object from my login() function...I made it void already, and my banking system uses 6 other header files too, so it would be a pain to change it.
dhayden,
You're right, although I only really need one Bank object. So it could work...
dhayden wrote: |
---|
Since this is the beginner's forum, |
Primarily out of curiosity, what if this was, say, the General Programming forum? Would you have given a more complex solution?
Anyway, thanks guys!
And have a good day!
max