0
Good afternoon! I’m answering a programming list, the question is very easy and I know the logic of execution but there is a part that I do not know how to implement, I left it in italic.
Make a program that reads any text file and save each read string in a map that relates the word to its size. Do not distinguish between upper and lower case. Show all words and their respective sizes at the end of the program .
Is there any way to distinguish between upper and lower case letters in string comparisons in c++?
Use the tolower (or toupper) function on each of the characters being compared. You can also use the strcasecmp function of <strings. h>.
– anonimo