Rep-string: Difference between revisions
m
Minor improvement to code.
(New post without using external libraries. In addition to an existing post which uses the "Boost" library.) |
m (Minor improvement to code.) |
||
Line 1,012:
std::cout << "The longest rep-strings are:" << std::endl;
for ( const std::string& test : tests ) {
std::vector<std::string>
std::string result = repeats.empty() ? "Not a rep-string" : repeats.back();
std::cout << std::setw(10) << test << " -> " <<
}
}
|