C++ Taskbook Level 9.6
Задание 1
Given some URL:
cppstd::string url = "http://test.com/dir1/dir2/dir3/page.html";
Get the name of the first folder:
cpp"dir1"
Задание 2
Make a function that takes a number and returns that number in words. Let the function work with numbers up to 999. See the example:
cppfunc(123); // will bring out 'one hundred twenty three'
Задание 3
Given a string containing two numbers and a mathematical operation between them:
cpp'10 + 20'
Write code that will calculate the result of the written mathematical operation.