🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csu.cs.200
Article #166

Re: Assignment #2 Structures Question

#166
From: Michael Szczepaniak
Date: Tue, 15 Sep 1998 00:00
17 lines
1149 bytes
Since age and salary are can be declared as int's, I used the following
struct to create both lists (and it works ;-) :

struct SLLnode{
     char lname[MAXLAST]; // where MAXLAST is a declared const
     int age_sal;
     SLLnode *next;
};

Melissa Jackson wrote:

> How is anyone dealing with two linked lists with diffrent data?  How did
> anyone declare structures?  Did you inclusde name, age , and alary in
> one structure?  Or create different stuctures for each linked list?
>
> thanks
> melissa
Technical Details
Message-ID: <35FF273B.89C4DE90@earthlink.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35FEDB28.CF17D067@holly.colostate.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 127144,4abb7f36f08ec871
X-Google-Attributes: gid127144,public
From: Michael Szczepaniak <mszczepaniak@earthlink.net>
Subject: Re: Assignment #2 Structures Question
Date: 1998/09/15
Message-ID: <35FF273B.89C4DE90@earthlink.net>
X-Deja-AN: 391571858
Content-Transfer-Encoding: 7bit
References: <35FEDB28.CF17D067@holly.colostate.edu>
X-Posted-Path-Was: not-for-mail
Content-Type: text/plain; charset=us-ascii
X-ELN-Date: Tue Sep 15 19:44:47 1998
Organization: Eclectic systems
Mime-Version: 1.0
Reply-To: mszczepaniak@earthlink.net
Newsgroups: csu.cs.200