Hi there!
I'm writing a program which has lots of vectors in it...I've named these vectors sequentially - ie vector1, vector2, vector3 etc.
What I was wondering is, is there a way of displaying the contents of these vectors without manually writing cout << vector1[0] etc?
I know this doesn't work but its essentially what I want to do:
number1[0] = 1;
number2[0] = 2;
number3[0] = 3;
for(int i=1; i<=3; i++)
cout << numberi[0];
I appologise in advance for my amateur-ness....it's for a university project and we haven't had the time to properly learn c++!
Thanks in advance!