Hello, I am having som problems with a program I am writing.
I am to remove punctuation from words read in from a file.
"-" are ok
EX.
The strings print out withCode:infile >> temp_word; for(i=0; i<strlen(temp_word.c_str());i++) { if(isalpha(temp_word[i]) { temp_word[i] = temp_word[i]; } }but they have punctuation in them stillCode:cout << temp_word;
PLEASE HELP
Also I wouls like to use STL's likeif poss.Code:isalpha()