string FirstName, MiddleName, LastName; int NameLength; ... NameLength = FirstName.length(); NameLength = NameLength + MiddleName.size(); NameLength = NameLength + LastName.length();
x = FirstName.find("an");