DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR CPP
find character in string c++
auto char_to_find = 'a' if (str.find(char_to_find) != std::string::npos) { // character found }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#find
#character
#string
ADD COMMENT
Topic
COMMENT
Name
5+5 =
Submit