22 of 100 menu

C++ Taskbook Level 3.2

Given an array of strings, output to the console only those strings that start with "http://".

A certain line is given.

"1203405"

Find the position of the first zero in the string.

Given a line:

"abcdef"

Get the last three characters of this string:

"def"

Given an array:

int[] [1, 2, 3, 4, 5, 6]

Get the following slice from it:

int[] [3, 4, 5]

Given a line:

std::string str = "abc def jhi";

Get an array of words from this string:

std::string[] {"abc, "def", jhi"}

Given a line:

"abc_abc_abc"

Replace all underscores with spaces:

"abc abc abc"
enru