58 = {
"Argyle",
"Bute",
"Cumbernauld",
"Dundee",
"Edinburgh",
"Fife",
59 "Glasgow",
"Harris",
"Iona",
"Jura",
"Kirkwald",
"Lewis",
60 "Mull",
"Newhaven",
"Orkney",
"Pitlochry",
"Queensferry",
67 deq.
push(strings[i++]);
68 deq.
push(strings[i++]);
69 deq.
push(strings[i++]);
73 cout <<
"0: " << deq.
nth(0) <<
"\n";
74 cout <<
"1: " << deq.nth(1) <<
"\n";
76 cout << deq.pop() <<
"\n";
77 cout << deq.pop() <<
"\n";
81 deq.push(strings[i++]);
82 deq.push(strings[i++]);
83 deq.push(strings[i++]);
84 deq.push(strings[i++]);
85 deq.push(strings[i++]);
86 deq.push(strings[i++]);
90 cout << deq.back_pop() <<
"\n";
91 cout << deq.back_pop() <<
"\n";
92 cout << deq.back_pop() <<
"\n";
93 cout << deq.back_pop() <<
"\n";
97 deq.push(strings[i++]);
98 deq.push(strings[i++]);
99 deq.push(strings[i++]);
100 deq.push(strings[i++]);
104 cout <<
"0: " << deq.nth(0) <<
"\n";
105 cout <<
"1: " << deq.nth(1) <<
"\n";
106 cout <<
"2: " << deq.nth(2) <<
"\n";
107 cout <<
"3: " << deq.nth(3) <<
"\n";
109 deq.push(strings[i++]);
110 deq.push(strings[i++]);
111 deq.push(strings[i++]);
112 deq.push(strings[i++]);
118 deq.push(strings[i++]);
119 deq.push(strings[i++]);
122 deq.back_push(strings[i++]);
123 deq.back_push(strings[i++]);