conversion from ' ' to non-scalar type ' ' request

I'm currently getting
21 C:\Users\Endre\Documents\CISC 3110\Chapter 7\hw#3\Bank.cpp conversion from `const Account*' to non-scalar type `Account' requested

as an error message.

The member function is

1
2
3
4
Account Bank::getaccounts () const
{
     return (accounts);
}


Can anyone explain to me what the error means? I tried searching for google but couldn't really find an explanation.

edit--

The only reason I can see for the error is that accounts is an array but the program compiled fine before.
Last edited on
You will need to post a little bit more. What type is accounts?
I managed to solve the issue by myself but just to answer your question, accounts is of type Account.
Topic archived. No new replies allowed.