CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Posts
    2

    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..

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    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.

  3. #3
    Join Date
    Feb 2008
    Posts
    966

    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
  •  





Click Here to Expand Forum to Full Width

Featured