C++ Taskbook Level 9.3

Задание 1

Ask the user for two integers. Create a two-dimensional array whose size is taken from the numbers the user entered. Fill the array with random integers.

Задание 2

The following array is given:

javascriptstd::string arr[] = ["123", "456", "789"];

Transform this array into the following:

javascriptint arr[] = {
  {1, 2, 3},
  {4, 5, 6},
  {7, 8, 9}
};
Задание 3

Given some URL:

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

Get the protocol from it:

cpp"http"
Задание 4

Given a two-dimensional array:

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

Split its elements into two arrays:

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