diff --git a/pretext/LinearBasic/ImplementingaDequeCpp.ptx b/pretext/LinearBasic/ImplementingaDequeCpp.ptx index 34e94042..7c2310fc 100755 --- a/pretext/LinearBasic/ImplementingaDequeCpp.ptx +++ b/pretext/LinearBasic/ImplementingaDequeCpp.ptx @@ -7,7 +7,7 @@ the front of the deque is at position 0 in the array.
@@ -47,7 +47,7 @@ int main() {
d.pop_front();
cout << endl << "Item at the front: " << d.front() << endl;
- cout << "Itm at the back: " << d.back() << endl;
+ cout << "Item at the back: " << d.back() << endl;
cout << "Deque Size: " << d.size() << endl;
cout << endl << "Items in the Deque: " << endl;
@@ -55,9 +55,11 @@ int main() {
for(int i = 0; i < dsize2; i++){
//prints each item in the deque.
cout << d.at(i) << " ";
+ }
+
+ cout << endl;
return 0;
- }
}