C++ Taskbook Level 8.8

Задание 1

Given a text file, shuffle the words in this file in random order.

Задание 2

You are given a text file. Get all the unique words from this file. Write the result to a new file, so that each row contains 10 words separated by spaces.

Задание 3

Given an array of numbers, calculate the total number of digits in all the numbers in the array.

Задание 4

Write a program that will generate the following array:

cpp{
  "1",
  "12",
  "123",
  "1234",
  "12345",
  "1234",
  "123",
  "12",
  "1",
}