string a="d:\\abc\\dd.avi";
string::size_type pos = 0;
while ((pos = a.find_first_of("\\",pos)) != string :: npos)
{
a.replace(pos,1,"http://");
pos++;
}
string a="d:\\abc\\dd.avi"; string::size_type pos = 0; while ((pos = a.find_first_of("\\",pos)) != string :: npos) { a.replace(pos,1,"http://"); pos++; } |
||