-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
27 lines (21 loc) · 696 Bytes
/
main.cpp
File metadata and controls
27 lines (21 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// g++ main.cpp .\functions\add.cpp .\functions\constructor.cpp .\functions\print.cpp .\functions\totalCustomers.cpp .\functions\dequeue.cpp .\functions\search.cpp .\functions\clear.cpp -o .\executeable\main.exe
#include <iostream>
#include "./headers/queue.h"
using namespace std;
int main(){
Queue bankQueue;
Token* t1=new Token(1,"saif","Deposit");
Token* t2=new Token(2,"faizan","withdraw");
Token* t3=new Token(3,"israr","Complaint");
bankQueue.AddtoQueue(t1);
bankQueue.AddtoQueue(t2);
bankQueue.AddtoQueue(t3);
bankQueue.clear();
bankQueue.print();
// bankQueue.search(2);
// cout<<"Serving..."<<endl;
// bankQueue.dequeue();
// bankQueue.search(1);
// bankQueue.print();
return 0;
}