I want to write a function in C++ to accept a 2D array of STRINGS and a word then count the number of times the word occurs in a string.
Tried different codes but end up with too many errors! Am I supposed to store the 2D array in a 1D array word by word (cant figure out how) or check for the word line by line?
Tried different codes but end up with too many errors! Am I supposed to store the 2D array in a 1D array word by word (cant figure out how) or check for the word line by line?
Comment