| 46 | |
| 47 | |
| 48 | int main(){ |
| 49 | int choice; |
| 50 | cout<<"1. Insert an item to Circular queue"<<endl; |
| 51 | cout<<"2. Delete an item from Circular queue"<<endl; |
| 52 | cout<<"3. Display all items of Circular queue"<<endl; |
| 53 | cout<<"4. Exit"<<endl; |
| 54 | do{cout<<"Enter choice: "<<endl; |
| 55 | cin>>choice; |
| 56 | switch(choice){ |
| 57 | case 1: Insert(); |
| 58 | break; |
| 59 | case 2: Delete(); |
| 60 | break; |
| 61 | case 3: Display(); |
| 62 | break; |
| 63 | case 4: cout<<"Exit"<<endl; |
| 64 | break; |
| 65 | default:cout<<"Enter valid choice"<<endl; |
| 66 | } |
| 67 | |
| 68 | }while(choice!=4); |
| 69 | return 0; |
| 70 | } |