C++ Taskbook Level 9.2

Задание 1

Write a program that will generate the following string:

cpp"-x-xx-xxx-xx-x-"
Задание 2

Two arrays are given:

cppint arr[]1 = {1, 2, 3, 4};
int arr[]2 = {5, 6, 7, 8};

Merge their elements pairwise into the following two-dimensional array:

cppint[][] {
  {1, 5},
  {2, 6},
  {3, 7},
  {4, 8}
}
Задание 3

Given some URL:

cppstd::string url = "http://test.com/dir1/dir2/dir3/page.html";

Get the page name from it:

cpp"page.html"
Задание 4

Given an array, the subarrays of which contain numbers:

cpp[
  [1, 2, 3],
  [4, 5, 6],
  [7, 8, 9],
]

Merge the elements of this array into numbers:

cpp[123, 456, 789]