🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csu.cs.200
Article #112

Re: Program 4 initialize

#112
From: Chris Carlson
Date: Fri, 09 Oct 1998 00:00
20 lines
1583 bytes
LIST_Create and LIST_Destroy need to become you class constuctor
and destructor, respectively. This way, when the class is created the
list will  be created, and when the class loses focus the list is
destroyed. This was in the assign#4 handout and should fix your
problem.

Chris Carslon

christopher brockmeier wrote:

> Help!  I don't understand how we are supposed to initilize the
> lists when Main4.C simply calls list_name.LIST_AddAtEnd(data);If you cant set "used" to zero the list doesn't get initial-
> ized, but how can you tell the status of the list?  If it is
> AddAtEnd of nothing that's what I get: nothing.  So I've trid
> to check with an if statement if data[0] (my array) has a null
> value for name, if it does I initialize it.  It doesn't
> compile this way.  Another thing is that LIST_Create and LIST_
> Destroy are getting flagged for not returning values... I
> think my code is exactly as it is in the notes and book for
> this.  If anyone can help please reply! kempf@cs....
Technical Details
Message-ID: <361EA9FB.AC0D4863@holly.colostate.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6vm3nr$bh3c@yuma.ACNS.ColoState.EDU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 127144,f08ca94766d56012
X-Google-Attributes: gid127144,public
From: Chris Carlson <spasm@holly.colostate.edu>
Subject: Re: Program 4 initialize
Date: 1998/10/09
Message-ID: <361EA9FB.AC0D4863@holly.colostate.edu>
X-Deja-AN: 399536563
Content-Transfer-Encoding: 7bit
References: <6vm3nr$bh3c@yuma.ACNS.ColoState.EDU>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Colorado State University, Fort Collins, CO  80523
Mime-Version: 1.0
Newsgroups: csu.cs.200