I have a question, about the member initiziler list.
I want to know if you can use the member initilizer list with a function? Or if its only able to be used with the constructors?
1 2 3 4 5
void AmmunitionManager::load() // mLocation(x,y)can i do this?
// It doesnt work when i try:
AmmunitionManager::AmmunitionManager(int x, int y):mLocation(x,y)//Can i only
// do it like this?
Heres a bit more info on the class.
Im trying to create a 'new' Point But its having issues.
I want to pass 2 ints a x and y, becausue thats what my point class has. And i can use it with a constructor but not a void functionName();