Doubly Nested Loops + Chars + Strings

Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=jaguWkQsP1s



Duration: 1:30:58
147 views
1


Wrapping your head around doubly or triply-nested loops can be one of the harder things to comprehend, so we slowly worked through tracing the execution of a program, and I showed my approach toward making sure my mental model of what the computer is doing matches what is actually happening. Cout all the things! I do this even in Game Development.


We then went over a couple new things, including:
1) Unsigned integers (they're like integers, but can't be negative) and why you shouldn't use them in a lot of cases (underflow).
2) Always strive for 0 errors and 0 warnings in your code.
3) Chars hold ASCII characters. There's functions that tell you what sort of ASCII character they are
4) Be careful adding to chars as you can get an int by accident if you're not careful
5) You can add strings together







Tags:
csci 40
loops
chars
strings