I am programming a C ++ program (regular game) in which you need to guess the letter and it will check if it is present in the string.
for example
Secret line: I like to program.
Guess1: 'a'
Display: ............ a ...
Etc.
But I do not know how to see if the character is in this secret line.
I use std :: string (required)
Any help is appreciated!
c ++ string character
Cissmayazz
source share