Skip to content

Instantly share code, notes, and snippets.

View abhicse113's full-sized avatar

Abhishek Raj abhicse113

  • Birla institute of technology Mesra
View GitHub Profile
@mycodeschool
mycodeschool / Stack_ArrayImplementation_OOP.cpp
Created October 8, 2013 02:44
An object oriented implementation of stack using arrays in C++.
// Stack - Object oriented implementation using arrays
#include <iostream>
using namespace std;
#define MAX_SIZE 101
class Stack
{
private:
int A[MAX_SIZE]; // array to store the stack
int top; // variable to mark the top index of stack.