Accessing, and push_back values of a vector from a different class?
<p>I'm overall confused on how to access a vector, and add values to it from a different class.</p>

<p>I would like to add values into the vector (the vector is private) from a different class. I also want to access the vector in my main() and be able to print it out.</p>

<p>Can anyone give me an example of how this is done?</p>

<pre><code>Class A
{
//vector is here - it's a private vector
}
Class B
{
//add values to the vector here
}
main()
{
//access the vector here, and print out the values
}
</code></pre>
