How to remove [^a-z\s] in C++
- by Steven
So far I have:
int SimplifyText(char chars[], int length)
{
//To lower
for(int i=0; i<length; i++)
{
chars[i] = tolower(chars[i]);
}
This function simplifies the text in the first argument which is an array containing the number of characters as given in the second argument
The requirements are:
tolower all remove all non-alpha…