Код: Выделить всё
#include
#include
#include
std::string capSpace(std::string txt) {
std::vector un_cap;
std::vector caps = {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
std::vector small = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
for (int i=1; i
Подробнее здесь: [url]https://stackoverflow.com/questions/78173064/breaking-a-string-into-words-at-each-capital-letter[/url]