Professional Documents
Culture Documents
Faiz DSA Assignment
Faiz DSA Assignment
Section: BSCS-B
Assignment: DSA
#include<iostream>
#include<Windows.h>
class banking {
int account_no[10];
string name[10];
int Balance[10];
public:
void push(int x,string y,int z) { //To push data into the stack
else
top++;
account_no[top] = x;
name[top] = y;
Balance[top] = z;
}
else
top--;
};
int main() {
banking obj;
int choice,rem=10;
a:
cout << "Welcome to the admin account of banking system";
cout << "\nPress 1 to push the data \nPress 2 to pop all the entered
data\nPress 3 to terminate";
string nam;
int acc_no;
int balance;
obj.pop();
Sleep(10000);
else if (choice == 3)
terminate;
else
Sleep(5000);
system("cls");
goto a;
return 0;