title: Find a character position in a string C++
body: <p>How can I find the position of a character in a string? Ex. If I input "abc*ab" I would like to create a new string with just "abc". Can you help me with my problem?</p>