I'm having a little bit of trouble using vector arrays with classes:
I'm trying to make an instance of the class what would that look like? vector <user> paratrooper(); works, but it doesn't give any values.
Leopardo Containers require that the elements they contain be copyable and assignable. Arrays do not meet this requirement. You're already using a container (vector), so why are you using an array? How about a vector of vectors? Im trying to make a vector that will hold coordinates. Ive decided to implement a coordinate as an array of integers of length 2.IMO a poor decision. Either create a 'coordinate' type (class), or if you only need 'raw' storage for two values, use a 'std::pair'.
My code to initialise this array is: vector<int> coordVector; This seems to compile ok but I'm not sure if it is making a vector of arrays.