Skip to content

Instantly share code, notes, and snippets.

View geekified05's full-sized avatar
🎯
Focusing

geekified05

🎯
Focusing
  • Hyderabad
View GitHub Profile
@geekified05
geekified05 / Stack_ArrayImplementation_OOP.cpp
Created November 2, 2025 13:33 — forked from mycodeschool/Stack_ArrayImplementation_OOP.cpp
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.