Article View: comp.std.c
Article #4226Re: SORTED SLL
From: Jonas J. Schlein
Date: Sun, 15 Oct 1995 02:34
Date: Sun, 15 Oct 1995 02:34
23 lines
1287 bytes
1287 bytes
|> I have a struct of strings that I am putting in a SORTED Singly Linked List |> for a project and I can't get a proper insert() function to work. Anybody |> have any examples of code that can be easily converted to match this |> structure? [struct deleted] |> I would like it SORTED IN ORDER based on the loanrec key. First of all what do you mean by "SORTED IN ORDER"? To different people this could mean many different things. I will assuming you mean ascending order lexicographically. Also you have no field/key/whatever called loanrec. The name of your struct is 'struct loanrec' and you have a 'next' field that is a 'struct loanrec *'. You will have to be more explicit to receive additional help as I simply can not make sense of what you want for your sorting criteria. -- "If it wasn't for C, we would be using BASI, PASAL, and OBOL." Jonas J. Schlein (schlein@gl.umbc.edu)
Technical Details
Message-ID:
<45prvp$fab@umbc9.umbc.edu>Path:
arc1-ca.pugleaf.net!news.umbc.edu!not-for-mailReferences:
<1995Oct5.234529.1578@nrlvx1>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.umbc.edu!not-for-mail From: schlein@umbc.edu (Jonas J. Schlein) Newsgroups: comp.std.c Subject: Re: SORTED SLL Date: 14 Oct 1995 22:34:33 -0400 Organization: University of Maryland Baltimore County Message-ID: <45prvp$fab@umbc9.umbc.edu> References: <1995Oct5.234529.1578@nrlvx1> NNTP-Posting-Host: f-umbc9.umbc.edu NNTP-Posting-User: schlein