c++ programming for bank problems