a skeleton for credit account in c++