title: 2d array with two different datatypes?
body: <p>In c++, I am attempting to create an array to store two different datatypes. Essentially, I want an ID and the actual datatype. </p>
  
  <p>psuedocode:</p>
  
  <pre><code>array[int][myObj]
  
  0, myObj1
  1, myObj2
  2, myObj3
  </code></pre>
  
  <p>I understand this is not how to declare an array. Is this functionality possible? Do I have to create a custom class with a struct?</p>