You need to be more specific about what you think the problem is. To you, the phrase 'I think perhaps the way I'm going about giving it the columns and rows is wrong?' may have a clear meaning but to the rest of us it seems very ambiguous. In what way do you think the way you are specifying the rows and columns is wrong?
To make the code a bit clearer you could try doing it this way:
Code:
unsigned int column_max = 80;
unsigned int row_max = 54;
int i,j;
for(i=0; i < column_max; i++)
{
for(j=0; j < row_max; j++)
{
/* Do your fractal code here - I.e. do-while loop, and your if statements */
}
}
Your while loops inside one another makes the program notation quite confusing. The advantage of doing it this way is that the program won't just terminate when it hits the 53rd row. It will do the whole row and then stop.
Obviously if you use 'i' as your column index you can't use it in your fractal calculation loop so you would have to re-assign another index to that.
Is that what you mean by the phrase: 'I think perhaps the way I'm going about giving it the columns and rows is wrong?'?