功能:向字符串指定的位置重写某一个字符
str1:原始字符串
index:重写的位置
str2:需要重写的字符
返回值:重写后的字符串
例:
sting s1="abscd";
s1=SetAt(s1,2,"w");
s1的结果为"abwcd"