Ok I'm trying to print out a returned integer such as.
moneyBag.getCred();
Now i'm trying it in the following way.
void interface1(Bank* moneyBag) {
cout << moneyBag.getCred();
}
But I get the following error, any suggestions?
left of '.getCred' must have class/struct/union type
moneyBag.getCred();
Now i'm trying it in the following way.
void interface1(Bank* moneyBag) {
cout << moneyBag.getCred();
}
But I get the following error, any suggestions?
left of '.getCred' must have class/struct/union type