Question: Define a function CollectIndices ( ) that has one input string parameter, one character parameter, and one output vector parameter passed by reference. The function
Define a function CollectIndices that has one input string parameter, one character parameter, and one output vector parameter passed by reference. The function should not return any value. The function finds the characters in the input string that are not equal to the character parameter, and stores the index of each such character in the output vector in the same order as the input string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
