In the main function, I'm initializing a variable of type std::vector <int>
like this:
std::vector <int> edges[9]
and then add my elements to it.
what i wanna know is there a way to initialize edges with variables ?? To do something like this: (already know that this writing gives error)
int n=9;
std::vector <int> edges[n]
Aucun commentaire:
Enregistrer un commentaire