I am doing a project That 1) Has a Class called BankType
2)Has Class functions(implementation file)
3)Has void function to update balance of the account (Make it ask for account password/ error trap for incorrect PW)
4)Able to View the account balance (ask for PW again)
5)Has a menu that asks user for action
// Implementation File (banktype.cpp)
// This file implements the BankType member functions;
#include<BankType.h>
#include<string>
#include<iostream>
#include<bool.h>
usingnamespace std;
int main()
{
int sentinal, magic;
sentinal=999
BankType bankObject;
bankObject.BalanceUpdate();
bankObject.DisplayBalance();
cout<<"\nThank You for Choosing Barter Bank!\n"<<endl;
//loop (while loop with sentinel=99)
while (magic != sentinal)
{
cout<<"Please Enter Your Choice of Account Options: "<<endl;
cout<<"Enter-1) Process a Deposit or Withdrawl"<<endl;
cout<<"Enter-2) View Your Account Balance"<<endl;
cout<<"Enter-99) To EXIT: "<<endl;
cin>>magic; //reads magic and determines what void to run.
}
cout<<"Exiting..."<<endl;
system("pause");
return 0;
}
Nobody will help you if you don't tell us what's wrong, assuming that there is something wrong with your code. If there's nothing wrong - we don't write homework for you.
If we don't know what's wrong, we can't help.
If your code doesn't use code tags, we don't want to look at your code.
Sorry first thread. I'm new to programming also. My error is telling me that there is no such BankType.h file. I'm guessing something about instantiating the object.
Thanks for the code tags post.