I'm dynamically creating class information but I for some reason, can't figure out how to change the data through the system.
I've tried... potential->price() = (potential->price() - tradeNegotiation)
However I get mysterious errors... lvalue required as left operand of assignment
Now I'm using something similar to the pointers to classes tutorial by Juan, unfortunately it doesn't cover my topic, or at least I can't find an apt solution.
1) make a 'setPrice' function and do potential->setPrice( potential->getPrice() - neg );
or
2) make the 'price' member public and access it directly.
I'd probably recommend option 2, since 'price' likely doesn't have any impact on any other members of the 'car' class, and therefore doesn't really need to be private.