Thread: Appending a list!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    133

    Appending a list!

    Quick list question.

    If I have an empty list where would I append the first value of the list.

    The definition of append in the question says "append an element at the end of the right partition".

    This is why I am confused... With an empty list <> the 'fence' of the list I'm assuming is <|>.

    So if I have these commands...

    L1.append(10);
    L1.append(20);
    L1.append(15);

    whould the list look like this? <10,20,15> or <10,20,15>

    I think the main issue I am having is after L1.append(10) I don't know where the fence would be located...

    <10|> or <|10>

    any help would be great!
    Last edited by GCNDoug; 10-06-2008 at 01:50 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 10:10 AM
  2. instantiated from here: errors...
    By advocation in forum C++ Programming
    Replies: 5
    Last Post: 03-27-2005, 09:01 AM
  3. How can I traverse a huffman tree
    By carrja99 in forum C++ Programming
    Replies: 3
    Last Post: 04-28-2003, 05:46 PM
  4. List class
    By SilasP in forum C++ Programming
    Replies: 0
    Last Post: 02-10-2002, 05:20 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM