Question: It should be done in c++ Problem 4. (30 points) You are given an array of strings where the array already contains one word per
It should be done in c++
Problem 4. (30 points) You are given an array of strings where the array already contains one word per entry. This means each entry only contains lowercase and uppercase letters from the English alphabet. Your task is to write functions that take in the array as the parameter that do the following: b) (10 points) Sort all the words in the alphabetical order in the array. The function should be void my_sort (string array ( ) , int size), where size is again the size of the array. The function need not return anything or print anything, just sort the contents of the given array. You may assume that you have already a built-in function to compare strings called bool compare (string si, string s2) that returns true if s1 is alphabetically less than s 2 (for example sl = ''apple'' and s2 = ''banana'') and returns false otherwise
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
