Two types of value in one vector C++
<p>Say I have a vector for class Students, but the requirement of the question states that I cannot put grade together in the constructor, so I will have to work around it.</p>

<p>Is it possible that I have two values in one vector slot?</p>

<p>For example, the class Student and string grade are my arguments.</p>

<pre><code>vector&lt;Student*, string&gt; Students;
</code></pre>

<p>So, at the end of the day, if I cout the vector, I should get Student AND the grade in one slot.</p>

<p>Does this work? If so, how do I push_back the value?</p>

<p>Otherwise, is there another way to do this?</p>