Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cout<<"Enter the number of soldiers: ";
- cin>>a;
- if (a>=10 && a<=50)
- {
- cout<<"Enter the number of k-th soldier to be removed: ";
- cin>>b;
- if (b>=2 && b<=10)
- {
- for (c=1; c<=a; c++)
- ex.Enqueue(c);
- }
- else
- {
- cerr<<"Error: Input must be in between 2 to 10.";
- cin.get(); cin.get();
- }
- }
- else
- {
- cout<<"Error: Input must be in between 10 to 50.";
- cin.get(); cin.get();
- }
Add Comment
Please, Sign In to add comment