In this code, the STOI function does not work. Why?
Answer 1, Authority 100%
Stoi
function can take string
or wstring
– see it Description .
You pass to her just CHAR
.
So it does not “not work”, the code is not compiled at all.
If you describe what you want to get – it would be possible to give some advice, but your question is asking for closure as a standard reason
Questions with request to help with debugging (“Why doesn’t this code work?”) Must include The desired , a specific problem or error and the minimum code for playing it directly in question.