代码搜索:Stack

找到约 10,000 项符合「Stack」的源代码

代码结果 10,000
www.eeworm.com/read/403154/11521480

cpp stack.cpp

#include "Stack.h" #include Stack::Stack() { top = -1; } Point Stack::GetTop() const { if (top == -1) throw "下溢"; return data[top]; } Point Stack::Pop() { if (to
www.eeworm.com/read/403154/11521487

h stack.h

#ifndef STACK_H #define STACK_H #define STACK_MAX_SIZE 100 struct Point { int x; int y; }; class Stack { public: Stack(); Point GetTop() const; Point Pop(); void Push(Point x
www.eeworm.com/read/403014/11523681

cpp stack.cpp

//: C04:Stack.cpp {O} // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright notice in Copyright.txt // Linked list with nesting #inc
www.eeworm.com/read/403014/11523692

h stack.h

//: C04:Stack.h // From Thinking in C++, 2nd Edition // Available at http://www.BruceEckel.com // (c) Bruce Eckel 2000 // Copyright notice in Copyright.txt // Nested struct in linked list #ifnde
www.eeworm.com/read/403013/11523913

cpp stack.cpp

/* * This file contains code from "C++ Primer, Fourth Edition", by Stanley B. * Lippman, Jose Lajoie, and Barbara E. Moo, and is covered under the * copyright and warranty notices given in that
www.eeworm.com/read/403011/11524348

h stack.h

// stack.h -- class definition for the stack ADT #ifndef STACK_H_ #define STACK_H_ typedef unsigned long Item; class Stack { private: enum {MAX = 10}; // constant specific to class
www.eeworm.com/read/403011/11524352

cpp stack.cpp

// stack.cpp -- Stack member functions #include "stack.h" Stack::Stack() // create an empty stack { top = 0; } bool Stack::isempty() const { return top == 0; } bool Stack::isf
www.eeworm.com/read/403009/11524653

h stack.h

// stack.h -- class definition for the stack ADT #ifndef STACK_H_ #define STACK_H_ typedef unsigned long Item; class Stack { private: enum {MAX = 10}; // constant specific to class
www.eeworm.com/read/403009/11524657

cpp stack.cpp

// stack.cpp -- Stack member functions #include "stack.h" Stack::Stack() // create an empty stack { top = 0; } bool Stack::isempty() const { return top == 0; } bool Stack::isf
www.eeworm.com/read/402806/11527244

h stack.h

#include const int length=30;//the length of identier no more than 30 bytes const int capacity=200; //the capacity of the stack is 50 struct node { int encode; int