Linked list

This is a discussion on Linked list within the C Programming forums, part of the General Programming Boards category; hello...

  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    20

    Linked list

    hello
    Last edited by johnhuge; 09-23-2011 at 08:51 PM.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    How do you know how many pages are in a stack of paper? Go through them one at a time keeping count.
    If each page has a number written on it, how do you average those numbers? Go through them one at a time, keeping a count and a sum. Then do some division.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Sep 2011
    Posts
    20
    thanks for your reply can you give me an example on how to keep count on every page.Also how would i pass in the balance in the link list to the function to take the average.

    THANKS!!!!!

  4. #4
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    John... please put your code back up in message #1 ... It's beyond bad form to go deleting stuff like that. You deprive others of the chance to learn from it!

    EDIT: What is this a freaking epidemic?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Copying a linked list into another linked list
    By paranoidgnu in forum C Programming
    Replies: 7
    Last Post: 07-19-2011, 06:21 PM
  2. Replies: 4
    Last Post: 05-01-2010, 10:19 PM
  3. single linked list to double linked list (help)
    By Countfog in forum C Programming
    Replies: 8
    Last Post: 04-29-2008, 08:04 PM
  4. singly linked list to doubly linked list
    By t48j in forum C Programming
    Replies: 3
    Last Post: 03-23-2005, 05:37 PM
  5. Replies: 6
    Last Post: 03-02-2005, 01:45 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21