C++ Taskbook Level 4.9
Given a string of letters and numbers:
std::string str = 'a1b2c345';
Please make sure that this line does not contain more than three letters.
Given an array:
int arr[10];
Use a loop to fill this array with random integers between 1
and 100
.
Given a string:
"abcdefg"
Remove every third character from this line. In our case, we should get the following:
"abdeg"
Given an array with numbers of days of the week:
int arr[] = {1, 2, 7};
Write the names of these months into a new array:
std::string[] {"Mon", "Tue", "Sun"}