}; int _tmain(int argc, _TCHAR* argv[]) { queue a; int number_of_elements; int data; cout<<"Queue before adding Elements: "; a.display(); cout<<<<"Enter number of elements in queue "; cin>>number_of_elements;
for(int iter = 0 ; iter < number_of_elements ; iter++) { cout<<" Eneter elements "; cin>>data; a.addItem(data); } cout<<<"Queue after adding Elements: "; a.display(); cout<<<<"Deleting Elements:
"; for(int iter=0 ; iter < number_of_elements ; iter++) { a.deleteItem(); cout<<"Deletion Number : "<<(iter+1)<<" : "; a.display(); cout<<<" Press any key to exit"; getch(); return 0; }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment