cout << findTheChar("hello", 'l') << endl;
findTheChar - const char *. const char * std::cout , , \0.
str -> +---+---+---+---+---+---+
| h | e | l | l | o | \0|
+---+---+---+---+---+---+
^
|
findTheChar(str, 'l')
, ( ). , void *.
, , "e" "ello"
cout << *ptr << endl;
ptr *ptr , , char, const char *.
++, std::string .
int findTheChar(const std::string& str, char chr );