about linked list

This is a discussion on about linked list within the C++ Programming forums, part of the General Programming Boards category; I have a Pet struct and data members include name,animal type,age and a pointer variable nextPet. I want to write ...

  1. #1
    missy
    Guest

    about linked list

    I have a Pet struct and data members include name,animal type,age and a pointer variable nextPet.

    I want to write a function that dynamically creats a new node for a Pet object and then should ask the user to enter in the information for all data members of the node and assign NULL to the nextPet data member. It must return the pointer to the struct.
    And I want to display all the data in linked list.

    thnks

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    well how far have you got on your own..... my homework alarm is ringing!
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

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