123456789101112
#include <iostream> #include <string> #include <array> int main() { std::string digits = "1234509876543216789010293"; std::string strings[] = {{digits, 0, 5}, {digits, 5, 5}, {digits, 10, 5}, {digits, 15, 5}, {digits, 20, 5}}; for(const auto& s: strings) std::cout << s << std::endl; }