代码搜索:Stack
找到约 10,000 项符合「Stack」的源代码
代码结果 10,000
www.eeworm.com/read/212244/15161546
s stack.s
;/****************************************Copyright (c)**************************************************
;** 广州周立功单片机发展有限公司
;** 研
www.eeworm.com/read/212244/15161559
s stack.s
;/****************************************Copyright (c)**************************************************
;** 广州周立功单片机发展有限公司
;** 研
www.eeworm.com/read/212244/15161571
s stack.s
;/****************************************Copyright (c)**************************************************
;** 广州周立功单片机发展有限公司
;** 研
www.eeworm.com/read/212063/15166246
cpp stack.cpp
Stack::Stack()
/*
Pre: None.
Post: The stack is initialized to be empty.
*/
{
count = 0;
}
Error_code Stack::push(const Stack_entry &item)
/*
Pre: None.
Post: If the Stack
www.eeworm.com/read/212063/15166248
h stack.h
const int maxstack = 10; // small value for testing
class Stack {
public:
Stack();
bool empty() const;
Error_code pop();
Error_code top(Stack_entry &item) const;
Error_c
www.eeworm.com/read/212063/15166263
cpp stack.cpp
#include "../../4/LINKSTAC/STACK1.CPP"
Stack::Stack(const Stack &original) // copy constructor
/*
Post: The Stack is initialized as a copy of Stack original.
*/
{
Node *new_copy, *
www.eeworm.com/read/212063/15166266
h stack.h
class Stack {
public:
// Standard Stack methods
Stack();
bool empty() const;
Error_code push(const Stack_entry &item);
Error_code pop();
Error_code top(Stack_entry &item) con
www.eeworm.com/read/212063/15166351
cpp stack.cpp
template
Error_code Stack::push(const Stack_entry &item)
{
Stack_node *new_top = new Stack_node(item, top_node);
if (new_top ==
www.eeworm.com/read/212063/15166361
h stack.h
template
struct Stack_node {
Stack_entry entry;
Stack_node *next;
Stack_node();
Stack_node ( Stack_entry item, Stack_node *add_on
www.eeworm.com/read/211352/15182590
java stack.java
package seqStack;
public interface Stack
{
public boolean notEmpty ();
public Object getTop();
public void push (Object o);
public Object pop ();
}