C++ Taskbook Level 2.8

Задание 1

Given an array of strings:

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

Get an array of characters from these strings:

cppchar[] {'a', 'b', 'c', 'd', 'e', 'f'}
Задание 2

Given an integer containing a month number from 1 to 12:

cppint num = 1;

Print the name of the month corresponding to this date.

Задание 3

Given a line:

cppstd::string str = "12345";

Get the first and last character of this string as follows:

cppstd::string "15";
Задание 4

Given variables containing the sides of a rectangle:

cppint a = 10;
int b = 20;

Get the area and perimeter of this rectangle.