RE: [Dev-C++] Single Linked List Problem-II
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <iv...@em...> - 2003-06-06 12:51:47
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Andr? Macario Barros > Sent: Friday, June 06, 2003 5:10 AM > To: Dev-Cpp-Users > Subject: [Dev-C++] Single Linked List Problem-II >=20 >=20 >=20 > I forgot the "int i;" variable declaration, ok? > And this is a "C" program (aswering for the orientation=20 > "allways say if you > are working > with a C or C++ program"). I have a head ache so I shall not try to understand how the program = works (if it works). :) However here is my hint: =20 > *** > The slstore function stores the new element in the last position. = It=B4s > "next" record is filled > with the NULL address to mean that there aren=B4t more elements=20 > in the list. > At the end of the program 5 memory spaces of 64 bytes each one, are > allocated for each element. > How can I use the free command to return the memory for the computer? You will free each one separately using a loop. Please keep me informed = if you manage to make it work. Ioannis Vranos =20 * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |