Click to See Complete Forum and Search --> : Printing a grid..


javaGuy101
March 24th, 2008, 05:46 PM
Hi,

I have a 2D string array storing all the details for a calendar.

A month is displayed as 20 chars across and 8 lines down. So it's a [12][8] string array that I'm trying to print outin a 3x4 grid so it's like

january february march
april may june
july august september
october november december

I have managed to print as far as march but i'm having hassle moving onto april. I can't even print out the first row of te grid 4 times..

Any ideas on how I would go apbout designing a loop for this??

Thanks..

dlorde
March 24th, 2008, 06:25 PM
12x8 ? how does that represent a month? More detail required. Give examples of input and output (data and format), and the code you have so far.

One of the principal objects of theoretical research in any department of knowledge is to find the point of view from which the subject appears in its greatest simplicity...
J.W. Gibbs

ProgramThis
March 25th, 2008, 08:24 AM
20 chars across and 8 lines down. So it's a [12][8]

This is confusing, should this be [20][8]? I understand that there are 12 months, so is the 20 wrong?