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

Function main

Q-Queue/QueueUsingArray.cpp:34–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33}
34int main(){
35 int choice;
36 cout<<"1. Insert an element to queue"<<endl;
37 cout<<"2. Delete an element from queue"<<endl;
38 cout<<"3. Display all elements of queue"<<endl;
39 cout<<"4. Exit"<<endl;
40 do{cout<<"Enter choice: "<<endl;
41 cin>>choice;
42 switch(choice){
43 case 1: Insert();
44 break;
45 case 2: Delete();
46 break;
47 case 3: Display();
48 break;
49 case 4: cout<<"Exit"<<endl;
50 break;
51 default:cout<<"Enter valid choice"<<endl;
52 }
53
54 }while(choice!=4);
55}

Callers

nothing calls this directly

Calls 3

InsertFunction · 0.70
DeleteFunction · 0.70
DisplayFunction · 0.70

Tested by

no test coverage detected