Hello people I need help, i want use an array to store an object
but I don't know how I do this.
eg:
---------------
car.h
----------------
class car{
public:
car();
public:
string marc;
string model;
string color;
int category;
};
-------------------
car.cpp
------------------------
constructor
car::car(){
marc="bmw";
model="v2" ;
string="black";
category=2;
}
I want to know how I can declare and create an array to store the object "car" in this class.
Thanks in advance for your help.
