Hello I've been working on a C++ banking application that should be able to hold more than one account with all the related field's. I have come across a few issues:
When creating an account only the most recent account is able to be searched for and displayed in display data. I know that an array is needed for this to be possible, I'm just not sure if implemented this correctly.
Thanks for the help. Any input is appreciated!
When displaying account info in Display or ShowInfo functions, the first letter of the first name and the middle initial wont show up.
Well that's because you're ignoring the first character of those strings in your input function.
Is there a reason you're using C-strings instead of std::string?
When creating an account only the most recent account is able to be searched for and displayed in display data. I know that an array is needed for this to be possible, I'm just not sure if implemented this correctly.
Looking at the fields in your class I suspect that you should be creating an array, or better yet a vector, of BankAccount.
I fixed the character issue by using strings but I'm still unable to hold multiple accounts. I know I need to use an array or better yet a vector but I'm not sure how i would implement them and allow the user to input the info for multiple accounts before returning to the main menu.