1234567891011121314151617181920212223 |
- void lowerCase(std::string& strToConvert){
- for(unsigned int i=0;i<strToConvert.length();i++){
- strToConvert[i] = tolower(strToConvert[i]);
- }
- }
- std::vector<std::string> capMe(std::vector<std::string> arr) {
- std::vector<std::string> aA;
- for(int i = 0;i<arr.size();i++){
-
- lowerCase(arr[i]);
-
- arr[i][0] = toupper(arr[i][0]);
-
- aA.push_back(arr[i]);
- }
- return aA;
- }
|