Loops Day 3 / Strings / Range-Based For Loops
Channel:
Subscribers:
2,650
Published on ● Video Link: https://www.youtube.com/watch?v=8MOJnH7kH_0
We started with an exercise to find the factors of a number, and then use this to tell if a number is prime. (There are ways of finding out if a number is prime without factoring it, but you'll learn that in CSCI 26.)
We then moved into a discussion of strings, and how to 1) get the size of a string, and 2) how to get individual characters from a string.
We introduced our third loop, the ranged-for loop (aka the range-based for aka the foreach loop) which allows you to do things like say "For every character c in a string, output the uppercase version of c".
Other Videos By Bill Kerney
2023-09-06 | C++ Functions |
2023-09-05 | Principles of Game Design |
2023-09-05 | Dynamic Materials |
2023-09-03 | The Difference Between G++ and Clang++ |
2023-09-01 | Enums and Switches - Peanut Butter and Jelly and Rye Bread |
2023-08-31 | UE5 New Water System |
2023-08-31 | Wireframe Triangles + Book Recommendations |
2023-08-30 | Loop Lab Time |
2023-08-30 | C++: The Read Library |
2023-08-30 | You should go to grad school |
2023-08-29 | Loops Day 3 / Strings / Range-Based For Loops |
2023-08-29 | Line Rasterization / Triangle Rasterization / Convex Hull Rasterization |
2023-08-29 | UE5: Water Week Day 1 |
2023-08-28 | Makefile Tutorial |
2023-08-25 | C++: Counting in Japanese and Mandarin |
2023-08-24 | UE5 Blueprints Part 2: The Iron Man We Have At Home Soccer |
2023-08-23 | C++: Doubly Nested For Loops / While Loops / Break / Continue |
2023-08-22 | Representation and Intersection of Lines and Boxes |
2023-08-22 | Introduction to Programming Blueprints in UE5 |
2023-08-21 | C++: For Loops |
2023-08-21 | Why it's important to check for errors and edge cases in Computer Science |