There's something wrong in rows 25-30. I requested the existing index but get an error. I don't understand the problem, what's wrong?
string *shells_host = new string[cnt];
for(int i=0;i<cnt;i++)
{
shells_host[i] = LinkToHost(shells[i]);
shells[i] = LinkToReq(shells[i],shells_host[i].size()+7);
}
All code: http://codepaste.ru/10939/