#include <iostream>
#include <string>
using namespace std;
void ChangeDir(string & strDir);
void main()
{
string dir = "c:\\window\\system32\\look";
cout << dir << endl;
ChangeDir(dir);
cout << dir << endl;
}
void ChangeDir(string & strDir)
{
string::size_type pos = 0;
while ((pos = strDir.find("\\", pos)) != string::npos)
{
strDir.insert(pos, "\\");
pos += 2;
}
}