将*设为小写

时间:2015-11-09 09:21:14

标签: c++ visual-c++

我在c ++中并不是很好,所以我想知道是否有人可以帮助我。

                    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 << "}";
                }
            }

我想以小写

制作(* it)

0 个答案:

没有答案