diff --git a/labs/list_iterators_new/README.md b/labs/list_iterators_new/README.md index d18ceec..c54bce9 100644 --- a/labs/list_iterators_new/README.md +++ b/labs/list_iterators_new/README.md @@ -42,6 +42,10 @@ Example 5: This is the [original GIF](seat_real.gif). And this is the [reversed GIF](seat_fake.gif). +Example 6: + +This is the [original GIF](pool_real.gif). And this is the [reversed GIF](pool_fake.gif). + ## Starter Code The starter code [main.cpp](main.cpp) defines a class named GifFrame to represents GIF frames. Each object of this class represents one frame. diff --git a/labs/list_iterators_new/main.cpp b/labs/list_iterators_new/main.cpp index b286741..576c3f6 100644 --- a/labs/list_iterators_new/main.cpp +++ b/labs/list_iterators_new/main.cpp @@ -290,7 +290,7 @@ int main() { std::vector reversedFrames = reverseFrames(frames); // write out the new GIF with the complete header - writeGif("reversed.gif", completeHeader, frames, loopExtension); + writeGif("reversed.gif", completeHeader, reversedFrames, loopExtension); return 0; } diff --git a/labs/list_iterators_new/pool_fake.gif b/labs/list_iterators_new/pool_fake.gif new file mode 100644 index 0000000..ee7db54 Binary files /dev/null and b/labs/list_iterators_new/pool_fake.gif differ diff --git a/labs/list_iterators_new/pool_real.gif b/labs/list_iterators_new/pool_real.gif new file mode 100644 index 0000000..c21f5ae Binary files /dev/null and b/labs/list_iterators_new/pool_real.gif differ