S
sci
class A;
void function(vector<A>* l)
{
....
}
main(){
vector<A> aAList;
function(&aAList[0]);
}
How to pass address of aAlist object into a function? How to call each
member inside "function()"? Can a list be passed the same way like a
vector?
Is it possible to pass a reference to "aAList" into the "function()"?
Thanks!
void function(vector<A>* l)
{
....
}
main(){
vector<A> aAList;
function(&aAList[0]);
}
How to pass address of aAlist object into a function? How to call each
member inside "function()"? Can a list be passed the same way like a
vector?
Is it possible to pass a reference to "aAList" into the "function()"?
Thanks!