Delete
Delete a character or characters from a string starting with the character at nIndex. If nCount is longer than the string, the remainder of the string will be removed.
int Delete( int nIndex, int nCount = 1 )
The length of the changed string.
EX1
void string_Delete_ex1() { string str("Summer is best"); int len = str.GetLength(); int count = 3; int ret = str.Delete(6, count); if( ret == len-count ) { out_str(str);// output "Summer best" out_int("", ret); // 11 } }
string::Insert, string::Remove, string::Left, string::Right
origin.h