C++ Runtime Terminates std::out_of_range [closed]

Replace :

if (y>ekeylen)
{
    y=0;
}

by

if (y>=ekeylen)
{
    y=0;
}

Leave a Comment