Program to represent a bank account using class [c++]