ok well im making a mock atm machine (maybe i got the same book as that other guy?)
but im getting an error code " E2294 structure required on left side of . or .* in function main() "
this is puzzling me . can anyone help please?
heres my code
//HEADER FILE
#include <iostream.h>
#include <string.h>
class Account
{
public:
Account();
void getBalance();
int checkId(int,int);
void withDraw();
void deposit();
private:
float balance; //account balance
};
// CLASS FILE
#include <iostream.h>
#include <string.h>
#include "Account.h"
Account::Account()
{
}
int Account::checkId(aN,Pw)
{
return 1;
}
void Account::getBalance()
{
}
void Account::withDraw()
{
}
void Account::deposit()
{
}
// MAIN
#include <iostream.h>
#include <string.h>
#include "Account.h"
int main()
{
Account account1();
int verified=0;
// welcome message and account/password verification
cout << "\n\n||| || | Welcome to R Savage Bank | || |||";
cout << "\n\nplease enter verification details\n";
cout << "\naccount number: ";
int aNumber; // entered account number
cin >> aNumber;
cout << "\npassword: ";
int pWord; // entered password
cin >> pWord;
cout << "\n\nvalidating details..";
verified = account1.checkId(aNumber,pWord);
return 0;
}
<< moderator edit: added [code][/code] tags >>
any help is muchly appriciated.