代码搜索:SqStack
找到约 774 项符合「SqStack」的源代码
代码结果 774
www.eeworm.com/read/373100/9475247
cpp stack.cpp
#include
#include
#include
#include
#include
#define OK 1
#define ERROR -1
typedef int SElemType;
typedef int Status;
#define STACKINCRE
www.eeworm.com/read/372391/9512134
cpp bo3-1.cpp
// bo3-1.cpp 顺序栈(存储结构由c3-1.h定义)的基本操作(9个)
Status InitStack(SqStack &S)
{ // 构造一个空栈S
if(!(S.base=(SElemType *)malloc(STACK_INIT_SIZE*sizeof(SElemType))))
exit(OVERFLOW); // 存储分配失败
S.t
www.eeworm.com/read/175661/9537317
txt devil language.txt
#include "stdafx.h"
#include
#include
//========================================================
// 栈操作
//========================================================
#define S
www.eeworm.com/read/175659/9537326
txt 魔王语言代码.txt
#include "stdafx.h"
#include
#include
//========================================================
// 栈操作
//========================================================
#define S
www.eeworm.com/read/366495/9811738
cpp bo3-1.cpp
// bo3-1.cpp 顺序栈(存储结构由c3-1.h定义)的基本操作(9个)
Status InitStack(SqStack &S)
{ // 构造一个空栈S
if(!(S.base=(SElemType *)malloc(STACK_INIT_SIZE*sizeof(SElemType))))
exit(OVERFLOW); // 存储分配失败
S.t
www.eeworm.com/read/364713/9897505
cpp criticalpath.cpp
//CriticalPath.cpp
# include
# include
# include
# include
# define MAX_VERTEX_NUM 20
# define ERROR 0
# define OK 1
# define YES 1
# define NO
www.eeworm.com/read/364713/9897624
cpp conversion.cpp
//Conversion.cpp
//Conversion from positive Deci. numeral to Octo. numeral Fucntion
#include
#include
#include
#include
#define STACK_INIT_SIZE 10
www.eeworm.com/read/364219/9918152
txt horseridingboard.txt
/*----------------姓名:石壮-------------------*/
/*--------------班级:11010601----------------*/
/*----------------学号:062551----------------*/
#pragma once
#define OK 1
#define ERROR 0
#define OVERF
www.eeworm.com/read/363342/9958190
c 栈操作.c
#include
#include
#define MAX 20
#define ElemType int
#define S (*p)
struct SqStack
{
ElemType elem[MAX];
int top;
};
main()
{
struct SqStack *q;
int i,y,cord;
www.eeworm.com/read/361934/10027920
txt kuohaopipei.txt
设计算法判断一个算术表达式的圆括号是否正确配对。 (提示:
对表达式进行扫描,凡遇到'('就进栈,遇')'就退掉栈顶的'(',表达式被扫描完毕,栈应为空。
解:根据提示,可以设计算法如下:
#include
#include "stack.h"
int PairBracket( char *S)
{
//检查表达式中括号是否配对
int i;
SeqStack T; //定义一个