Posted by tkeats on 2000-10-25
(GNU/ANSI) C ?
I code on a redhat 6.2 Linux box, and am trying to make what seems to be a
faily simple program.
Why in C and not C++?
The original code was programmed in C and has yet to be ported to C++.
(it is not a job i am able to take on atm.)
struct user_object {
char *product_name;
char *prod_desc[50];
char *prod_desc2[50]
char *prod_id;
int price;
int item_type,item_use,item_var;
OBJ_OBJECT prev, next;
};
i have that much of the code down. Yet i dont fully understand each
section of it, and yes, i have read the K&R2 book, read documents online
and i STILL dont seem to be grasping it. For example.. WHY do product_name
and prod_desc need to be *product_name and *prod_desc
Much thanks in aiding my rather 'dense' mind that needs an awakening.
Ziffnab.
Previous post | Next post | Timeline | Home