need help on linked list

This is a discussion on need help on linked list within the C++ Programming forums, part of the General Programming Boards category; help i am doing a linked list algorithm but i don't know how to find a specific value inputed by ...

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    61

    need help on linked list

    help i am doing a linked list algorithm
    but i don't know how to find a specific value inputed by user and delete the value.
    any help is appreciated.


    for your information i used pass by reference in linked list

    need clear concept for me to delete please and
    examples thanks

  2. #2
    Registered User
    Join Date
    Mar 2010
    Posts
    6
    Does this help you ?

    linear searxh linked list

  3. #3
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    hey, is there another way of searching linked lists besides the linear one?
    Devoted my life to programming...

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,273
    Quote Originally Posted by Sipher
    hey, is there another way of searching linked lists besides the linear one?
    Since you can only traverse a linked list linearly element by element: no, not unless you involve another data structure.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  5. #5
    Registered User
    Join Date
    Oct 2008
    Posts
    61
    can anyone show me any working coding for linear search of linked list???

  6. #6
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,273
    hthought provided a link that has an example in C, but the concept and even the code is more or less the same with respect to C++.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ Linked list program need help !!!
    By dcoll025 in forum C++ Programming
    Replies: 1
    Last Post: 04-20-2009, 11:03 AM
  2. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 11:10 AM
  3. Reverse function for linked list
    By Brigs76 in forum C++ Programming
    Replies: 1
    Last Post: 10-25-2006, 11:01 AM
  4. Template Class for Linked List
    By pecymanski in forum C++ Programming
    Replies: 2
    Last Post: 12-04-2001, 09:07 PM
  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