Week 12 Day 1 - Parsing Input with Readlib
Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=B1MvFqtfGWk
Today I went over how streams work again, and how to use Readlib, a header library I made (https://github.com/ShakaUVM/read) that makes it a lot easier to do input with C++.
You can use read to read from cin by default, or if you pass it another stream (like a file or a stringstream) then it will read from that stream instead.
You can use readline to read a string, until a newline character is in the stream (by default) or if you pass in a second parameter, until that character is read.
Other Videos By Bill Kerney
2021-10-31 | Reading Code (C++) |
2021-10-29 | The best Team Fortress 1 map (Rock2) + Overview of Where Code is in QuakeC |
2021-10-28 | Proof By Induction Part 2 |
2021-10-28 | Explaining Triangle Rasterization in 30 Minutes |
2021-10-27 | Racism and Computer Science |
2021-10-27 | Making an Image Filter in C++ Version 1 |
2021-10-27 | Making an Image Filter in C++ Version 2 |
2021-10-26 | Roughing out a level |
2021-10-26 | Playing CustomTF and Brief Introduction to Modding It |
2021-10-26 | C++ Trivia, Recursion, Proof by Induction |
2021-10-25 | Week 12 Day 1 - Parsing Input with Readlib |
2021-10-25 | The Definition(s) of Racism and Ethnicity |
2021-10-22 | Reading from Multiple Files at the Same Time |
2021-10-22 | The Therac-25 Tragedy and the Impact of Computer Science on the World |
2021-10-21 | UE4 Level Streaming, Math for Game Engines |
2021-10-21 | UE4 Inventory System, Modding Quake 1 |
2021-10-21 | Recursive Maze Solving |
2021-10-20 | Reading from a File into a Vector of a Class |
2021-10-20 | Framing Part II |
2021-10-19 | Intersection Testing |
2021-10-19 | Mergesort |
Tags:
csci 40
readlib
iostream
iostreams
stream io
c++
cin
ifstream
istringstream
stringstream