I am using vectors for array purposes in my program. I declared my vector as a global variable.
I'm initializing it with some values at first in main. Let's say with 3 members. And then i pass the vector to a function as a parameter and try to add to more elements inside the function. But after i return back form the function the two elements are not appended. I thought that vector should be having "pass by reference" mechanism just as arrays but i'm not sure if this is my problem. Or what could the problem be?Is there something special with vector usage?
Thanks in advance...