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

Feb 18, 2012 at 2:46pm
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 Feb 18, 2012 at 2:47pm
Feb 18, 2012 at 3:02pm
You will need to post a little bit more. What type is accounts?
Feb 18, 2012 at 3:10pm
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.