C Programming help .....

Ben Duncan bns
Tue Jan 25 12:03:24 PST 2005


yes and no and no and yes ... <LAFF> .. in this case it was a test program
I am playing with to get familiar with dealing with structures and sub-structs
and arrays and arrays of structures and structures of arrays. This is part
of the on-going effort I am doing for my SLAG project.

In particular, this is the master menuing sub-system. It will read off disk,
the menu definitions and build menu sets, currently defined as an array
of 64. The menu set consists of 20 line items max and a line item
is a structure (line id, description, line type and program name).

Then, you have to track a "user" list of menu and drill down menu's
that are open. And to top it off, a menu line item can be type "menu"
that is another menu set, so you can literally have recursive menuing
going on.

Roger Oberholtzer wrote:
> On Tue, 2005-01-25 at 17:18, Ben Duncan wrote:
> 
>>Ohhh .... all I can say, is structures inside of structures, inside of
>>arrays, outside of arrays have given me an Ice Cream Headache !!!!!
> 
> 
> That may imply that you data needs better structuring... I was curious,
> for example, why the char strings were defined as arrays and not
> pointers. At least it means that when you copy, you get a real copy, not
> just a copy of the pointer. Unless that is what you wanted.
> 
> Do you really want a second copy? Or just a way to refer to the menu
> info?
> 
-- 
Ben Duncan   - VersAccounting Software LLC 336 Elton Road  Jackson MS, 39212
"Never attribute to malice, that which can be adequately explained by stupidity"
        - Hanlon's Razor



More information about the Linux-users mailing list