Iterate on an array inside a vector

I have a vector of normal C arrays.
What I want to know is how can I access each element of every array?
Example which does not work (only to understand the logic):

1
2
3
4
5
6
7
8
9
int a[] = {1,2,3};
int b[] = {4,5,6};
int c[] = {7,8,9};
vector<int*> vec;
vector<int*>::iterator it;

for(it = vec.begin(); it != vec.end(); it++)
  for(i=0; i<3; i++)
    cout << "Element " << i << (*it).[i] << endl;

How can I obtain this?

Thanks in advance!
Omit the dot on line 9.
Thanks!
Topic archived. No new replies allowed.