Difference between revisions of "Intermediate C++ Game Programming Tutorial 16"
From Chilipedia
(Created page with "In the video we take a look at a couple of bangers from <code><algorithm></code>, and we learn what lambda functions are and how to use them. == Topics Covered == * Algorithm...") |
(→Homework) |
||
Line 13: | Line 13: | ||
Solve the problems in Source.cpp attached below using the <algorithm> library and other parts of the standard library as extensively as possible. As a bonus problem, implement the sprite drawing effect shown at the end of the video using a lambda function. | Solve the problems in Source.cpp attached below using the <algorithm> library and other parts of the standard library as extensively as possible. As a bonus problem, implement the sprite drawing effect shown at the end of the video using a lambda function. | ||
− | * [http://www.planetchili.net/downloads/I16-HW.zip Source.cpp ( | + | * [http://www.planetchili.net/downloads/I16-HW.zip Source.cpp (homework file)] |
− | * [https://github.com/planetchili/sprite Sprite Repo ( | + | * [https://github.com/planetchili/sprite Sprite Repo (for bonus problem)] |
== Links == | == Links == |
Revision as of 21:59, 26 October 2017
In the video we take a look at a couple of bangers from <algorithm>
, and we learn what lambda functions are and how to use them.
Topics Covered
- Algorithms
std::sort
andstd::remove_if
- Concepts (as in, type concepts like Comparable)
-
<functional>
functors as predicates - Lambda functions
Video Timestamp Index
Homework
Solve the problems in Source.cpp attached below using the <algorithm> library and other parts of the standard library as extensively as possible. As a bonus problem, implement the sprite drawing effect shown at the end of the video using a lambda function.