Question: This is C++ i am not sure on why my code is not creating the correct answer here it seems to be duplicating choose an
This is C++ i am not sure on why my code is not creating the correct answer here it seems to be duplicating choose an option and i am not sure why.
Code
#include
using namespace std;
char printMenu(); int GetNumOfNonWSCharacters(string); int GetNumOfWords(string); void ReplaceExclamation(string&); void ShortenSpace(string&); int FindText(string, string);
int main() { char option; string text, phraseToFind; cout
} } cout > ch; return ch; } int GetNumOfNonWSCharacters(const string text){ int cnt = 0, i; int len = text.size(); for(i=0; i while(isspace(text[i])) i++; words++; } else{ i++; } } words = words + 1; return words; } void ReplaceExclamation(string& text){ string newText = text; int i, len = text.size(); for(i=0; i Errors 

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
