Feb 18, 2012 at 2:46pm UTC
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 UTC
Feb 18, 2012 at 3:02pm UTC
You will need to post a little bit more. What type is accounts?
Feb 18, 2012 at 3:10pm UTC
I managed to solve the issue by myself but just to answer your question, accounts is of type Account.