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 etc?
I know this doesn't work but its essentially what I want to do:
number1 = 1; number2 = 2; number3 = 3; for(int i=1; i<=3; i++) cout << numberi;
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!