Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 911 results for
linked-stack
- Page 1
Re: linked stack question.
Programming
Software Development
18 Years Ago
by Rashakil Fol
…url address on how to write a
linked
stack
? I need to create a
stack
with a menu using int and char…'menu'? Creating a
linked
stack
is simple, if you've already written a
linked
list: Step 1. Write a
linked
list. Step 2.…as an lvalue. Call this 'top'. Viola, you have a
linked
stack
! And of course, with 'function', you can interpret that …
linked stack question.
Programming
Software Development
18 Years Ago
by yaan
I've used
linked
lists before. Does anybody have a resource or url address on how to write a
linked
stack
? I need to create a
stack
with a menu using int and char variables. Thanks.
linked stack embedded in a sequencial vector?
Programming
Software Development
15 Years Ago
by ezkonekgal
can anyone clarify to me what this means? it's kind of comfusing..:) [B]
linked
stack
embedded in a sequencial vector[/B]
Re: linked stack embedded in a sequencial vector?
Programming
Software Development
15 Years Ago
by ezkonekgal
i mean how can a link
stack
be in a sequential vector/ isn't a vector here an array? as in sequential representation of stacks are in array and when you say
linked
representation, its node. for me, its like a contradiction. hmmmmmm?
Re: linked stack embedded in a sequencial vector?
Programming
Software Development
15 Years Ago
by masijade
Of course, since the only thing "in the vector" is a reference to the
linked
list, not the
linked
list itself.
Linked Stack Help
Programming
Software Development
12 Years Ago
by cecsFTL
…to generate random strings to push onto
stack
randString =
stack
.getString(amount); //Push random String onto
stack
stack
.push (new String (randString)); } …to generate random string to push onto
stack
randString =
stack
.getString(amount); //Push random String onto
stack
stack
.push (new String (randString)); }…
Re: Linked stack modification issue
Programming
Software Development
18 Years Ago
by Narue
…. >After the ID and name are poped from the
stack
, I need the program to >automatically display the list… a break statement. So if you want to display the
stack
after every pop, simply omit the break on the pop…
Linked stack modification issue
Programming
Software Development
18 Years Ago
by yaan
… it. After the ID and name are poped from the
stack
, I need the program to automatically display the list created…
Re: C++ Stack Assignment; Compiles but doesn't quite work
Programming
Software Development
13 Years Ago
by Khaled Qawasmeh
//
linked
stack
for(int i=0 ; i<10000 ; i++) {
stack
s; s.push (i) ; problems : 1- 2-
Re: linked stack question.
Programming
Software Development
18 Years Ago
by yaan
what I mean by a menu are choices (1 - push a character/integer, 2 - pop a character/integer, 3 - display all, etc..). I assume I'll be using the switch to accomplish this. Thanks.
Re: linked stack question.
Programming
Software Development
18 Years Ago
by shre86
yeah the switch statment shud solve all ur probs.. for any source code u want i think the best site is [url]www.planetsourcecode.com[/url] u ll get everything in tht site..
Re: Linked List - Copy Constructor
Programming
Software Development
15 Years Ago
by Duki
… StackType)" (?Identical@StackType@@$$FQAE_NV1@@Z) main.obj ch5 identical
linked
stack
Error 1 error LNK2034: metadata inconsistent with COFF symbol table… identical
linked
stack
Error 3 fatal error LNK1120: 1 unresolved externals J:\Projects\ch5 identical
linked
stack
\Debug\ch5 identical
linked
stack
.exe 1 ch5 identical
linked
stack
…
Re: Linked List - Copy Constructor
Programming
Software Development
15 Years Ago
by Duki
Oops. Here are my errors (same in both spots): [quote]Error 1 error C2664: 'NodeType::NodeType(const NodeType &)' : cannot convert parameter 1 from 'ItemType' to 'const NodeType &' j:\Projects\ch5 identical
linked
stack
\ch5 identical
linked
stack
\StackType.cpp 66 ch5 identical
linked
stack
[/quote]
Re: linked stack question
Programming
Software Development
18 Years Ago
by Narue
… tell them whether or not the
stack
is empty, not print the contents of the
stack
. But you can do it like…
C++ Stack Assignment; Compiles but doesn't quite work
Programming
Software Development
14 Years Ago
by ELewis08
…instruction is 'dspy' pop an operand from the
stack
stack
and print it to the screen end do …correct set of instructions. Use either a
Linked
Stack
or an array-based
Stack
to implement this program. ------------------------------------------------------------------------------------------------------------------------------ First, …
Re: Custom Linked Stack Problem - my pop() method does not give the underlying element?
Programming
Software Development
15 Years Ago
by ArkM
…; } [/code] Now what happens: you create LOCAL (in the
stack
) variable node and place its address (the pointer to local…'s why your program prints a garbage. A robust
stack
class must create its own copies of stacked elements (…for example). It's too unsafe approach to
stack
pointers only: the
stack
object does not know stacked elements scope and…
Custom Linked Stack Problem - my pop() method does not give the underlying element?
Programming
Software Development
15 Years Ago
by jthechemist
… hold a pointer to the top element of a
stack
(a LinkedNode) and an integer counter, and do… all the fun stacky things a good
stack
does. Here is jStack: [CODE]template <class… that holds the value 10, create a
stack
, push the pointer to the Test object onto …the
stack
. Then, I pop the pointer back off …
Circular Linked List
Programming
Software Development
13 Years Ago
by rcossy1023
… can delete posts? Anyway I need to have a circular
linked
stack
where after 5 pushs the 6th push goes into front…
Re: Linked stack modification issue
Programming
Software Development
18 Years Ago
by yaan
More specifically, how can I get rid of display () and still "display" poped entries after each pop. Thanks.
Re: Linked stack modification issue
Programming
Software Development
18 Years Ago
by Narue
>More specifically, how can I get rid of display () and still "display" poped entries after each pop. That's easy: you don't. Since the data members of your class are private (as they should be), the only way to display them is with a public member function or a friend function. Either way you would have the equivalent of link_stack::…
stack , queue and linked list
Programming
Software Development
16 Years Ago
by CaninA
anyone can do case statment for
stack
, queue and
linked
in one program plz ex: void main () do {…cout << "3 -
linked
list "; cout << "4 -
stack
with
linked
list"; cout << &…here ? case 3 : what's a code
linked
list here ? code
stack
: [ICODE]class
Stack
{ private: enum { MAX=10,MIN=-1};//…
Re: stack , queue and linked list
Programming
Software Development
16 Years Ago
by CaninA
…;"Enter the following\n1- for
Stack
\n2- for Queue\n3- for
Linked
List\n"; cin>>…code of
stack
?????? break; case 2: //// what's code of queue ????? break; case 3: // what's code of
linked
list …
Re: stack , queue and linked list
Programming
Software Development
16 Years Ago
by Lerner
… code it looks like you've managed to use a
stack
. a queue and a list in the same program. You… indicate that restriction. Another version would be to base the
Stack
and Queue classes on a List rather than on an…
stack of linked lists
Programming
Software Development
19 Years Ago
by pobrien11
…. We are to use the stl
stack
adapter class. The elements of the
stack
are
linked
lists which represent polynomials. So in… essense it is a
stack
of
linked
lists/polynomials. Note I'm NOT trying to make …the
stack
itself a
linked
list, rather I'm trying to make the
stack
hold
linked
lists. I can get…
linked list - converted to stack using linked list
Programming
Software Development
15 Years Ago
by tones1986
…, my next project is to create a
stack
to store the data, instead of a
linked
list. BUT, my assumption is that… a
stack
uses a
linked
list, so why delete my
linked
list set up, when i could create… give it the extra functionality needed for a
stack
, and keep the old
linked
list class... So i have done this, and…
Re: Linked List implementation for stack
Programming
Software Development
15 Years Ago
by skatamatic
…;816556]We are using a singly
linked
list with head pointer to implement
Stack
ADT. The
stack
top is maintained at the [B…]end of the
linked
list,[/B] i.e….
stack
top is the last item. Discuss whether this…
Re: Linked list Stack c++
Programming
Software Development
13 Years Ago
by Mafiasays
…is copy another
stack
then pop each off and compare each node. Unfortunately
linked
list are …me, I am currently re-reading the
linked
list chapter to maybe see if that …to point to //the next node //copy the remaining
stack
while (current != NULL) { newNode = new nodeType…
Re: linked list - converted to stack using linked list
Programming
Software Development
15 Years Ago
by Lerner
… object with the Student object[/code] In essence the
stack
class calls a method from the list class member variable…list class member variable is a private member of the
stack
class, then only methods/variables of the list class … those which are accessable from the public methods in the
stack
class. If this is what you are doing, then…
Linked List implementation for stack
Programming
Software Development
15 Years Ago
by cool1_best1
… are using a singly
linked
list with head pointer to implement
Stack
ADT. The
stack
top is maintained at …the [B]end of the
linked
list,[/B]… i.e.
stack
top is the last item. Discuss…in term of time efficiency: In a
stack
of N-items, how fast can you …
Re: Linked List implementation for stack
Programming
Software Development
15 Years Ago
by cool1_best1
… if the
stack
top is maintained at the end of the
linked
list, i.e.
stack
top is …the last item, accessing the
stack
top would take… a lot of time, since N items of the
linked
list need… if we add a tail pointer to the
linked
list, the implementation will then be efficient, as…
1
2
3
16
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC