Week 12 Day 1 - Parsing Input with Readlib

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



Duration: 1:17:28
166 views
2


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.







Tags:
csci 40
readlib
iostream
iostreams
stream io
c++
cin
ifstream
istringstream
stringstream