Is there a way to repeat a loop cycle like in code example below, without i incrementing by 1?
bool twice = true;
bool* repeated = new bool[64];
int counter = 0;
for (int i = 0; i < 64; i++)
{
counter++;
if (twice && !repeated[i])
{
repeated[i] = true;
repeat;
}
}
delete[] repeated;
cout << counter << endl;
//counter should print 128
Edit: All iterations need to be repeated.