finding strings position with find()

Searches a string for a specified character or group of characters and returns the starting position of the first occurrence found or -1 if no match is found.

#include <string>
#include <iostream>
using namespace std;
int main() 
    string s1("Humpty ");
    // find returns the first character position in any string
    cout << s1.find('m') << endl; // will return 2
    return 0;