![]() |
| ||
| help with c++ coursework - code so far included. hi im new to daniweb im currently working on a piece of work. the idea is to create a bank account with deposit and withdrawal functions. create student business and current accounts (this is all roughly done and a case of copying and pasting for each account type with a different set of questions) . what it requires me to do is allow 10 accounts to be opened and then allow the user to search for each one and deposit and withdraw from each one. would anyone have any suggestions on how i could do this. below is my code so far and thankyou for taking the time to look. also it requires me to take an object orientated approach and im rather confused what this entails, any suggestions again would be appreciated. 1st - BANK.CPP #include <iostream> and the 2nd class - account.h #include <iostream> thankyou again |
| ||
| Re: help with c++ coursework - code so far included. >allow 10 accounts to be opened and then allow the user to search >for each one and deposit and withdraw from each one Well, start by allowing one account and work up from there. As a first attempt, I would suggest an array of account class objects. You need to write the account class, of course. Overall the problem is more tedious than difficult. Here's a basic example: #include <ios> |
| ||
| Re: help with c++ coursework - code so far included. Just as an aside, in this economy a short might be a more accurate variable type than an unsigned long for the balance. Hopefully we don't see the day where char types have enough memory to successfully handle the balances! |
| All times are GMT -4. The time now is 9:31 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC