Hello fellow programmers, I have a question that hopefully can be answered by one of you. The following code states that after the txt.file is put into a string variable, the entire string (array of characters) will then be removed of any punctuation and set to lower case alphabet. Both function statements worked fine, however, quotation marks and dashes (' " ', ' - ') were not removed from the string. The second statement in the while loop, which I commented out, was a test to try and remove the quotation from the string but that did not work either. When I 'cout' the string, I am outputting it into another text file. I don't know if the information provided is helpful but any advice would be fantastic thanks!
`while (fin >> str)
{
str.erase(remove_if(str.begin(), str.end(), ::ispunct), str.end());
//str.erase(remove(str.begin(),str.end(),'\"'),str.end());
transform(str.begin(), str.end(), str.begin(), ::tolower);
fout << str << " ";}`