The reason you are getting that error is because "coolstr" is a type, not an instance. You need declare it like any other variable: coolstr somecoolstr;
Anyway, an std::vector is basically an array so you use something like this to loop through the vector and get the information:
1 2 3
for(std::vector<int>::iterator i = somecoolstr.var.begin(); i != somecoolstr.var.end(); ++i) {
//do stuff with i
}