problem

This is a discussion on problem within the C++ Programming forums, part of the General Programming Boards category; Hello everyone,I have a problem regarding doubly linked list.I have to do an opeartion on doubly linked list that if ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    33

    problem

    Hello everyone,I have a problem regarding doubly linked list.I have to do an opeartion on doubly linked list that if I delete a node from any point,then it should assign a space over there.Here,I am sending a ' ' directly in the linked list but there is an error over there.Is there any way so that space is assigned to the deleted node?

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,303
    What do you mean by "if I delete a node from any point,then it should assign a space over there"? If the node is deleted, then assigning a space as its value does not make sense.
    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

  3. #3
    Registered User slingerland3g's Avatar
    Join Date
    Jan 2008
    Location
    Seattle
    Posts
    603
    How are you deleting, is my first question? For doubly linked lists you are just reassigning pointers of your previous node in the list to now point to the node after the node link you just deleted.

    I am not sure what you are trying to convey by "it should assign a space over there".

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 05:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 09:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 03:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 07:54 PM

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