Re: simple question on linked list insert
From: Ben Measures (saint_abroadremove_at_removehotmail.com)
Date: 01/30/04
- Next message: diet.tonic_at_club.soda: "Re: Trying to pass structure array to function"
- Previous message: Jack Klein: "Re: Trying to pass structure array to function"
- In reply to: Karl Heinz Buchegger: "Re: simple question on linked list insert"
- Next in thread: Anand Hariharan: "[OT] Kind attn: Karl Heinz (Was -> Re: simple question on linked list insert)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jan 2004 03:43:25 +0000
Karl Heinz Buchegger wrote:
[snip]
> In this field you should originate an arrow which points
> to the new node:
>
> head a b
> +------+ +------+ +-------+
> | o--------+ | 10 | | 20 |
> +------+ | +------+ +-------+
> |
> |
> v main::head
> +---------+ +------------+
> | o-------------------->| data: 10 |
> +---------+ +--->| next: o--------+
> | +------------+ |
> | |
> | +-------------------+
> ptr | | +------------+
> +------+ | +--->| data: 20 |
> | o---------------------------+ | next: NULL |
> +------+ +------------+
[snip]
Wow you must have spent a lot of time on that reply!
-- Ben M. ---------------- What are Software Patents for? To protect the small enterprise from bigger companies. What do Software Patents do? In its current form, they protect only companies with big legal departments as they: a.) Patent everything no matter how general b.) Sue everybody. Even if the patent can be argued invalid, small companies can ill-afford the typical $500k cost of a law-suit (not to mention years of harassment). Don't let them take away your right to program whatever you like. Make a stand on Software Patents before its too late. Read about the ongoing battle at http://swpat.ffii.org/ ----------------
- Next message: diet.tonic_at_club.soda: "Re: Trying to pass structure array to function"
- Previous message: Jack Klein: "Re: Trying to pass structure array to function"
- In reply to: Karl Heinz Buchegger: "Re: simple question on linked list insert"
- Next in thread: Anand Hariharan: "[OT] Kind attn: Karl Heinz (Was -> Re: simple question on linked list insert)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|