Re: doubts



rdivyahere@xxxxxxxxx wrote:

I need an info about writing array based linked lists for stacks
and queues. I need to store both a stack and a queue simultaneously
in one array of records.pls clear my doubts.

I suggest you start by exposing your definition of records.pls. I
rather doubt you can do this without having those records contain
both a field for a stack value and an independent field for a queue
value.

You would do better with a simple definition and two individual
linked lists. memory allocation via 'new' works.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
.



Relevant Pages

  • Re: Only one end of a stack is dynamic, the oldest item is the last removed.
    ... your stack is huge and C.P.U. intensive, just give it its own heap; ... Only one end of a stack is dynamic, the oldest item is the last removed. ... It's commonly used to refer to a LIFO queue. ... certainly done using linked lists, ...
    (microsoft.public.vc.language)
  • Re: Statement on Schildt submitted to wikipedia today
    ... using memoization and a work queue: ...     take from the front of the queue ... Neither the cache nor the work queue can be construed as a stack. ... I'm NOT saying that Higher Math is a conspiracy. ...
    (comp.lang.c.moderated)
  • Re: max buffer for send?
    ... > queue system. ... you are asking the socket stack _only_ to queue the ... >> can accept that and move on, you will be a better network developer. ...
    (microsoft.public.win32.programmer.networks)
  • Re: IEnumerable semantics
    ... >Stack, Queue oder ArrayList using the IEnumerable interface - can I ... I would however be very surprised if ArrayList returned items in any ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: what is a stack
    ... There's FILO and FIFO, they're both implemented as a regular old array (at ... Consider a stack of plates in a cafeteria, ... aka a queue. ...
    (comp.lang.java.programmer)