C++: Templated Stacks and Queues
Channel:
Subscribers:
2,650
Published on ● Video Link: https://www.youtube.com/watch?v=sbY4o7WtrHI
Today we did a very simple introduction to the concept of templates in C++, which lets you fill in things like a type later. This lets you write a single Stack class that works with any data type, like ints or strings or what have you.
Today we built both a stack class and a queue class using data structures we already know. And that's about it for stacks and queues... they're pretty simple.
Other Videos By Bill Kerney
2024-04-01 | Big O Review |
2024-04-01 | C++: The Nameless (Classes, Lamdas, Variables) |
2024-03-18 | College Path Lecture (Class Offerings and Transfer Possibilities) |
2024-03-18 | Recursion |
2024-03-15 | RPG-41 Overview |
2024-03-15 | UNIX / Vim Quiz #2 |
2024-03-11 | Black Box BST Debugging / BST Delete Algorithm |
2024-03-08 | Quiz Time: UNIX and Vim |
2024-03-06 | C++: BST print, insert, and invariants |
2024-03-04 | Conceptual overview of Binary Search Trees |
2024-03-04 | C++: Templated Stacks and Queues |
2024-03-02 | Queues and Stacks |
2024-03-02 | C++: Debugging Linker Errors |
2024-02-28 | C++: Dynamic Cast |
2024-02-28 | CSCI 1: Fallacies and Midterm I Review |
2024-02-26 | C++ Circular Lists, Sentinel Nodes, Merging Lists |
2024-02-26 | C++: Keywords You Might Not Know |
2024-02-23 | C++ Inheritance |
2024-02-21 | C++ Smart Pointers |
2024-02-14 | C++: Inserting into a Linked List |
2024-02-12 | C++: Debugging Linked Lists using Invariants |