Hello there!
I have a problem with my code, I mean...
I used std::map container to sort letters in alphabetical order and assign them number of their position in the alphabet (A-1, Z-26)
Now I should read word from txt file
string of numbers: 1, 3, 6, 10, 15, 21, 28, 36, 45, 55, ...
(for example: SKY is 19 + 11 + 25 = 55 = t10) --^^--
but there is so many words and my program exacly reads this word and its value-number, but ENTER in notepad is written in my console as a '->' and have stupid values like 1970795730, or just 8.
Have you any idea how to ignore this arrow sign?
link to my code:
https://pastebin.com/aLFEt4uA
link to the task:
https://projecteuler.net/problem=42