Example #1
0
void PushCode(code& c,code subc)
{
    for(unsigned int i = 0; i < c.size(); i++) //Перебираем строки
    {
        if(c[i].find("#code#")!=string::npos)
        {
            //c.erase(c.begin()+i);
            c.insert (c.begin()+i,subc.begin(),subc.end());
            break;
        }
    }
}
Example #2
0
void SealCode(code& c)
{
    for(unsigned int i = 0; i < c.size(); i++) //Перебираем строки
    {
        if(c[i].find("#code#")!=string::npos)
        {
            c.erase(c.begin()+i);
        }
    }
}