I\'ve searched a lot over the internet, and couldent find simple examples to print vector\'s data..
I tried to print it like an array, though it didnt worked...
You have to iterate over the vector's elements and then brint each one :
vector testersName;
// Fill your vector
for (int i = 0; i < testersName.size(); ++i) {
cout << testersName[i] << endl;
}
Moreover, I don't think the line vector does what you think it does. It is not necessary to give a size to the vector because it grows dynamically when you fill it. If you still want to give a size, use parenthesis : (MAX)