thanks a lot.....but one more Q
I am just grateful to u.......I was able to solve it....
Thanks a lot.....
Now there is another silly question:
1)a function is defined to cancel an account...... but as per my code the record doesnt gets cancelled.....Why??Can u pls enligten me??
Code:
void cancelExAccount(Account [], int count ) // count is the total no. of exisiting records in an array
{
variable declaration ........
for(int i=0; i < DATABASESIZE; i++)
{
if( database[i].name==validName )
{
tempName = database[i].Name;
tempPIN = database[i].PIN;
:
:
cout<<tempName<<endl;
:
:
:
}
:
:
if(reply=="Y" || reply=="y")
{
database[count-1].Name ;
database[count-1].PIN;
database[count-1].bal;
:
:
cout << "Account cancelled"<<endl;
cout << "\n\n";
}