Linked List Problem

This is a discussion on Linked List Problem within the C Programming forums, part of the General Programming Boards category; "I'm very much innocent about a linked list, but we have a case study about it"...

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    19

    Linked List Problem

    "I'm very much innocent about a linked list, but we have a case study about it"
    Last edited by llinocoe; 09-27-2008 at 11:54 PM.

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    * Don't cast malloc
    * Indent before you go any further
    * Don't use getch()
    * Don't use void main()
    * free() memory after you've finished with it

    A start would be changing, node.data to a character array (or a pointer). If you wrote this entire code and you understand it then it shouldn't be a problem.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help sorting a linked list. Beginner
    By scarlet00014 in forum C Programming
    Replies: 1
    Last Post: 09-27-2008, 07:16 PM
  2. singly linked circular list
    By DarkDot in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2007, 09:55 PM
  3. Replies: 6
    Last Post: 03-02-2005, 02:45 AM
  4. Linked list with two class types within template.
    By SilasP in forum C++ Programming
    Replies: 3
    Last Post: 02-09-2002, 06:13 AM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 11:21 PM

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