Question: C++ question Task 1: The function checks if the str1 is in the wordlist. Assume string str1 = {Hel}; string wordlist[10] = {Hello}; return true

C++ question

Task 1: The function checks if the str1 is in the wordlist.

Assume string str1 = {"Hel"};

string wordlist[10] = {"Hello"};

return true if str1 is a substring of the string wordlist or return false.

Task2: The function checks if ALL the str2 in the array are in the wordlist

Assume string str2[10] = {"Hello"};

string wordlist[10] = {"Hello"};

return true if ALL str2 are in the wordlist, false otherwise.

Hint: you should use task1 function in this function.

The question does say string something[]

I don't know if string something is the same as string something[]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!