Autosar
Linus_Yan
这个作者很懒,什么都没留下…
展开
-
基于C++语言堆栈push,pop,~stack,isEmpty,isFull实现
以下代码是基于C++语言写的堆栈的压栈,出栈,清栈,读栈指针等方法,在Visual studio 中,可直接使用,供学习者参考学习,希望大家点赞,关注,多多鼓励继续写下去。stack.h头文件1.#ifndef _STACK_H#define _STACK_Hconst int MAX_SIZE = 100;class Stack{private:char *data;int size;int top;public:Stack(); //构造函数Stack(int s); /原创 2022-04-18 10:08:23 · 1151 阅读 · 0 评论 -
基于C语言堆栈push,pop,gettop,destorystack,isEmpty,isFull实现
以下代码是基于C语言写的堆栈的压栈,出栈,清栈,读栈指针等方法,在Visual studio 中,可直接使用,供学习者参考学习。#include<cStack.h>#include <malloc.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <stdbool.h>#include#define MAX_SIZE 100typede原创 2022-04-17 21:11:38 · 1717 阅读 · 0 评论