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

    array of array pointers

    How can I define an array so I can initialize it as following:

    a[]=
    {
    {"aaa", "bb"},
    {"Cccc"},
    {"d", "eee", "fffff"},
    }

    The size of inner array is unknown.

    Thanks

  2. #2
    Join Date
    Apr 1999
    Location
    Altrincham, England
    Posts
    4,470

    Re: array of array pointers

    Excuse me if I'm wrong here, but this sounds like a homework question. We don't do homework unless you show that you've at least attempted an answer. What do you think the full declaration might be?
    Correct is better than fast. Simple is better than complex. Clear is better than cute. Safe is better than insecure.
    --
    Sutter and Alexandrescu, C++ Coding Standards

    Programs must be written for people to read, and only incidentally for machines to execute.

    --
    Harold Abelson and Gerald Jay Sussman

    The cheapest, fastest and most reliable components of a computer system are those that aren't there.
    -- Gordon Bell


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