For some reason why I run the code now I do not get this error.
Overall looking at the code that has been posted am I going the right way? Can I put a max on my shoes object i.e.
Shoe * shoes; // in shoes.h Shoe_List shoes; // in main.cpp
Because when I try this I get errors in the function and calling it:
shoes = new shoes; //expression must be a modifiable value
I guess I can just remove this as I will have set the size already. And:
shoes.load(); //expression must have class type
Or should I really be using vectors? I do need to set a max size though of 10.