str1="c:\temp\test.txt";
想转换成
str2="c:\\temp\\test.txt";
即将str1中的所有\替换成\\.