Thread: traverse ?

  1. #1
    Registered User edshaft's Avatar
    Join Date
    Nov 2001
    Posts
    45

    Question traverse ?

    i was wondering why stacks and queues r not traversable in data structures because the books i read dont really explain why so im kind of confused

  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    just that the definition of a stack or a queue doesn't allow access to things that aren't on "top" or in "front". Nothing magical about it except that you've set up rules for how that data storage class works.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Registered User edshaft's Avatar
    Join Date
    Nov 2001
    Posts
    45
    ooooh thanx thats just want i needed a simple little definiton that my brain could understand

    BODYSLAMMIN' 4EVER
    Last edited by edshaft; 10-30-2002 at 10:47 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. traverse a string to look for certain chars
    By cdkiller in forum C++ Programming
    Replies: 7
    Last Post: 09-28-2006, 02:19 PM
  2. traverse a directory and list all file names?
    By George2 in forum C Programming
    Replies: 3
    Last Post: 08-24-2006, 06:18 PM
  3. traverse a string array
    By paulur in forum C Programming
    Replies: 18
    Last Post: 03-14-2006, 07:29 AM
  4. How can I traverse a huffman tree
    By carrja99 in forum C++ Programming
    Replies: 3
    Last Post: 04-28-2003, 05:46 PM
  5. tree traverse Please HELP!!
    By Unregistered in forum C++ Programming
    Replies: 0
    Last Post: 11-26-2001, 03:57 PM