all,
I have this:
Code:
for (chr_min = 0; chr_min <= 24; chr_min += 3)
{
strOut = "";
for (ctr_row = 1; ctr_row <=3; ctr_row++)
{
switch (ctr_row)
{
case 1:
strOut = strOut + Line1.substr(chr_min, 3);
cout << ctr_row << endl;
case 2:
strOut = strOut + Line2.substr(chr_min, 3);
cout << ctr_row << endl;
case 3:
strOut = strOut + Line3.substr(chr_min, 3);
cout << ctr_row << endl;
}
}
cout << strOut << endl;
}
it is outputting to the shell window, this:
and that pattern apparently repeats for every iteration that's specified in the outer loop. am I missing something here?
I sure hope this is not because my CPP understanding is not up to par! thanks. any help surely appreciated.