Question: USING C++ Task 2 Write a function that will search for the beginnings of words in the text. Function should return the number of words

 USING C++ Task 2 Write a function that will search for

USING C++

Task 2 Write a function that will search for the beginnings of words in the text. Function should return the number of words in text and fill the array containing indexes of character positions, where the words start. Words are separated by spaces. Display the result to the user. Use an example text to call the function. Example call: int beginings[100]; char text[] = "This is an Information Engineering retake test"; int word_count = find_words (text, beginigs); // word_count = 7, beginings = {0, 5, 8, 11, 23, 35, 42) // display the result to the user

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 Databases Questions!