string erase « String « C++






1.string.erase(6,9)
2.Use erase to remove all characters from (and including) location 6 through the end of string1
3.Erase a range of characters using an overloaded version of erase()