mercredi 19 avril 2017

how can i get access to a private dynamic array in my class ? c++

How can i get access to a private dynamic allocated array in my class ? That's my class

    class DATABASE
{

    int n;
    persoana *v[100];
}

I've tryed to return the array with

const DATABASE* getArray() const { return &v; }






Comments
0 Comments

0 commentaires:

Enregistrer un commentaire