C++ Taskbook Level 4.8

Задание 1

Given a string of letters:

cppstd::string str = "Aaa Bbb Ccc';

Please make sure that this line does not contain more than two capital letters.

Задание 2

The date is given in the following format:

cppstd::string str = "2025-12-31';

Convert this date to the following array:

cppstd::string[] {"31", "12", "2025"}
Задание 3

There is a certain line with the words:

cpp"aaa bbb ccc"

Capitalize the first character of each word in this line. In our case, it should look like this:

cpp"Aaa Bbb Ccc"
Задание 4

Given an array of characters:

cppchar arr[] = {'a', 'b', 'c', 'd', 'e', 'f'};

Merge these characters in pairs as strings:

cppstd::string[] {"ab", "cd", "ef"}