Introducing Readlib
Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=KPiV5iDqgbQ
Some of my students asked about Readlib, and how to use the read() function with standard input and files, and how to detect errors with it. This is a pretty comprehensive demo of all the features in it.
It is a replacement for the standard input methods in C++, allowing you to write more compact, more readable, and more fault tolerant code.
Note: At the end I mention auto x = read(); should fail to compile, but technically it only fails when you try to do anything with it. On its own it will compile and do nothing.
Other Videos By Bill Kerney
2021-09-20 | Ethical Systems II - Is/Ought + Virtue Ethics |
2021-09-18 | Digital Logic II |
2021-09-17 | Making Video Games Interactive + Blueprints Coding |
2021-09-17 | Doubly Nested Loops + Chars + Strings |
2021-09-17 | Ethical Theories I |
2021-09-17 | Introducing Colorslib |
2021-09-16 | Voronoi Relaxation / Lloyd's Algorithm |
2021-09-15 | How to Approach Writing Code + Lvalues vs. Rvalues |
2021-09-15 | Truth Tables II + Denying the Antecedent + Affirming the Consequent |
2021-09-14 | Under the Hood I + Lighting + Special Effects in UE4 |
2021-09-14 | Introducing Readlib |
2021-09-14 | C++ I/O and Digital Logic |
2021-09-13 | Function Overloading and Commenting Code |
2021-09-13 | Truth Tables - AND, OR, NOT |
2021-09-11 | Call by Reference |
2021-09-10 | Modus Ponens and Modus Tollens |
2021-09-10 | SVN, Voronoi |
2021-09-10 | GDC Talks, Landscape III, Material Functions |
2021-09-10 | Combinatorics, Inclusion/Exclusion |
2021-09-08 | Functions Part II |
2021-09-08 | Arguments + Invalid/Valid/Sound |
Tags:
is50b
csci 26
readlib
c++
iostreams
ifstream
ostream