c++ array question

This is homework but im somewhat confused, i dont want the answer but maybe you could point me in the right direction?

-By using the same ________ for multiple arrays, you can build relationships between the data stored in the arrays.

I think it could be values but im not sure if thats correct or not
Think on how you would make two related arrays
I think this is related to http://www.cplusplus.com/forum/general/16144/ so I would get an example from there

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
   string salsa[] = {"mild", "medium", "sweet", "hot", "zesty"};
  int jars[5];
  int total_sales = 0;
  int index, i;

  cout << "Enter the number of jars sold for the mild salsa: ";
  cin>>jars[0];  // jars[0] has the same _______ of "mild" in the array salsa
  cout << "Enter the number of jars sold for the medium salsa: ";
  cin>>jars[1];
  cout << "Enter the number of jars sold for the sweet salsa: ";
  cin>>jars[2];
  cout << "Enter the number of jars sold for the hot salsa: ";
  cin>>jars[3];
  cout << "Enter the number of jars sold for the zesty salsa: ";
  cin>>jars[4];

Topic archived. No new replies allowed.