View Poll Results: do u have to use the old way?

Voters
0. You may not vote on this poll
  • change to other way

    0 0%
  • use link list tool kit

    0 0%
  • ???

    0 0%
  • suggest me!!!

    0 0%

Link list and node problem

This is a discussion on Link list and node problem within the C++ Programming forums, part of the General Programming Boards category; question1 ======================================= i tried to insert the new node alphabetically for example, if the first data's<name> node is "bbb" , ...

  1. #1
    Registered User tom_mk's Avatar
    Join Date
    Feb 2002
    Posts
    3

    Unhappy Link list and node problem

    question1
    =======================================
    i tried to insert the new node alphabetically
    for example, if the first data's<name> node is "bbb" , and the new node data <name> is "AAA" , "AAA" will be insert before 'bbb" , meanwhile , if the new one data is " ccc" , "ccc" will be inserted after "bbb", but the problem is, the node"CCC" is only insert after the first in "AAA" , "CCC", "BBB" instead of "AAA" "BBB" "CCC" , and the other prob is when i tried to insert"CCC" before "DDD" , the result is "DDD" "CCC' loop forever....

    question2
    =======================================
    about the del function
    i can only del the first node
    not the oher node

    i have attached my code with this post too

    please help!!!!!!!

    thanks everybody
    !!!!!
    Attached Files Attached Files

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unknown memory leak with linked lists...
    By RaDeuX in forum C Programming
    Replies: 6
    Last Post: 12-07-2008, 03:09 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  4. compiler build error
    By KristTlove in forum C++ Programming
    Replies: 2
    Last Post: 11-30-2003, 09:16 AM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM

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