برنامح يقوم بانشاء سجل لادخال بيانات عدة طلاب مع اسمهم ورقمهم وراتبهم ثم انشاء دالة للبحث عن طالب معين داخل قاعدة البيانات
// C++ program to implement basic stack // operations #include <bits/stdc++.h> using namespace std; #define MAX 1000 class Stack { int top; public: int a[MAX]; // Maximum size of Stack Stack() { top = -1; } bool push(int x); int pop(); int peek(); bool isEmpty(); }; bool Stack::push(int x) { if (top >= (MAX - 1)) { cout << "Stack Overflow"; return false; } else { a[++top] = x; cout << x << " pushed into stack\n"; return true; } } int Stack::pop() { if (top < 0) { cout << "Stack Underflow"; return 0;