I am still having a problem calling this function. I don't know
what I am doing wrong.
Here is the code I am working with.
char *AddName(void);
void main(void) {
char Names[4][20];
char (*Ptr)[20] = Names;
Ptr = AddName();}
char*AddName(void)
{
char *Nme[4][20];

cout << "Enter a first and last name: ";
cin.getline(Nme, 20);

return Nme;
}
I know this is probably simple, but I am just not understanding it.
I am able to do a one dim array
easily but when it comes to a two dimensional, I am lost. My reference
books are wonderful books
for one dim arrays and pointer, but doesn't expand much on the latter.
Can someone help?
Thanks, sbear