samedi 27 janvier 2018

How to call by reference a vector array?

#include < vector >
using std::vector;

int main(void)
{
    vector<int> gr[10];

    function(gr);
}

How should i define that function calling by reference rather than by value?

Aucun commentaire:

Enregistrer un commentaire