MCPcopy Create free account
hub / github.com/Lakhankumawat/LearnCPP / main

Function main

Q-Queue/CircularQueueUsingArray.cpp:48–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47
48int 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}

Callers

nothing calls this directly

Calls 3

InsertFunction · 0.70
DeleteFunction · 0.70
DisplayFunction · 0.70

Tested by

no test coverage detected