im not really good in c++ so i wondering if someone can help me with this.
std::vector<std::string> vocations;
for(VocationsMap::iterator it = Vocations::getInstance()->getFirstVocation(); it != Vocations::getInstance()->getLastVocation(); ++it)
{
if(it->first == it->second->getFromVocation() && it->first != 0)
vocations.push_back(it->second->getName());
}
msg << "What would you like to be... ";
for(std::vector<std::string>::const_iterator it = vocations.begin(); it != vocations.end(); ++it)
{
if(it == vocations.begin())
msg << "{" << *it << "}";
else if(*it == *(vocations.rbegin()))
msg << " or {" << *it << "}.";
else
msg << ", {" << *it << "}";
}
}
I want to make (*it) in lowercase