Difference between revisions of "Intermediate C++ Game Programming Tutorial 8"
From Chilipedia
(→Video Timestamp Index) |
(→Video Timestamp Index) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <code>std::vector<></code>. What does it have to do with mathematical vectors? Nothing at all. So why didn't they just name it <code>std::dynamic_array<></code>? Good question, good question. Next question. Seriously though, <code>std::vector<></code> is the shit and we are going to be using it all the GD time from now on. Get hype. | + | <code>std::vector<></code>: the sexiest of the standard containers. What does it have to do with mathematical vectors? Nothing at all. So why didn't they just name it <code>std::dynamic_array<></code>? Good question, good question. Next question. Seriously though, <code>std::vector<></code> is the shit and we are going to be using it all the GD time from now on. Get hype. |
== Topics Covered == | == Topics Covered == | ||
Line 9: | Line 9: | ||
== Video Timestamp Index == | == Video Timestamp Index == | ||
− | [https://youtu.be/ | + | [https://youtu.be/D73tErXPTwY Tutorial 8] |
== Lost Footage == | == Lost Footage == | ||
− | Chili recorded some footage where he shows a concrete example of using std::vector<> in the Database code from the Intermediate 4 homework. It was cut from the final video to keep the length under 30 minutes (Ritalin is expensive in some countries ;)), but you can find that footage here: | + | Chili recorded some footage where he shows a concrete example of using std::vector<> in the Database code from the Intermediate 4 homework. It was cut from the final video to keep the length under 30 minutes (Ritalin is expensive in some countries ;)), but you can find that footage here: [https://youtu.be/MvwJtrduZ34 Lost Footage (I8 Vector)]. |
== Source Code == | == Source Code == |
Latest revision as of 01:20, 7 August 2017
std::vector<>
: the sexiest of the standard containers. What does it have to do with mathematical vectors? Nothing at all. So why didn't they just name it std::dynamic_array<>
? Good question, good question. Next question. Seriously though, std::vector<>
is the shit and we are going to be using it all the GD time from now on. Get hype.
Contents
Topics Covered
- Basic
std::vector<>
operations - Concept of template classes
- Underlying implementation of
std::vector<>
- Managing
std::vector<>
capacity - Pointers to
std::vector<>
underlying data memory
Video Timestamp Index
Lost Footage
Chili recorded some footage where he shows a concrete example of using std::vector<> in the Database code from the Intermediate 4 homework. It was cut from the final video to keep the length under 30 minutes (Ritalin is expensive in some countries ;)), but you can find that footage here: Lost Footage (I8 Vector).
Source Code
Homework
The homework is to modify Poison Snek to use std::vector<>
. You will see the light.