Article View: comp.std.c
Article #4437Can anyone help me out ???
From: phamkh1
Date: Wed, 06 Dec 1995 21:35
Date: Wed, 06 Dec 1995 21:35
18 lines
882 bytes
882 bytes
Can anyone help with this pointer problem:
struct employee
{
char name[20];
int clock;
float wage, hours, overtime, gross;
struct employee *next;
};
In a loop, how can I:
1)get dynamic memory, using malloc, for an employee node.
2)move the employee data to the dynamic memory node from the array being
declared in advance, field by field.
3)link the memory to the previous node with a pointer.
4)use the pointer to access the array.
Any help will be really * 3 appreciated.(especially those come by e-mail
because I'm in a rush for this final project)
Thank!!!!!!!
Technical Details
Message-ID:
<1995Dec6.163547.1@aspen.uml.edu>Path:
arc1-ca.pugleaf.net!aspen.uml.edu!phamkh1Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!aspen.uml.edu!phamkh1 From: phamkh1@aspen.uml.edu Newsgroups: comp.std.c Subject: Can anyone help me out ??? Date: 6 Dec 95 16:35:47 -0500 Organization: University of Massachusetts Lowell Message-ID: <1995Dec6.163547.1@aspen.uml.edu> NNTP-Posting-Host: aspen.uml.edu