|
-
March 24th, 2008, 05:46 PM
#1
Printing a grid..
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..
-
March 24th, 2008, 06:25 PM
#2
Re: Printing a grid..
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
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
-
March 25th, 2008, 08:24 AM
#3
Re: Printing a grid..
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|