I am reading words into a map template and while reading them in I have to check to make sure they are all correct without any punctuation marks in them. If a word comes in that looks like this: --hello , then I need to get rid of the -- and just have the hello remain. I am new to c++ so I was looking for suggestions......My get_words function is below and it's working!!! Thanks jkr!
unsigned get_words(map<string,unsigned>& rMap)
int count = 0;
while (cin >> word)
Any suggestions would be extremely helpful!