|
-
March 29th, 2005, 01:25 PM
#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
-
March 29th, 2005, 02:25 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|