Array of Objects

I want to make 2 classes,
One being class Array
the other class Node

In a node object I want to store an ID name, and a number. And then populate the array with different nodes.

Im not asking for complete help, I just curious as to how im going to populate the array with the objects because I'm not sure I know how. Any suggestions? thanks in advance!
if you have that green check mark it means that you question is answered and done.

use a for loop to populate an array like

1
2
3
4
5
6
7
  char a[] = { 'A', 'B', 'C' };
  int size = sizeof(a) / sizeof(*a);
  for(int i = 0; i < size; ++i)
  {
    if('B' == a[i])
      break;
  }
Topic archived. No new replies allowed.