Week 9 Day 2 - File I/O with Classes and NCURSES Programming

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



Duration: 1:32:01
285 views
1


Today we went over how to read and write an array to disk (including how to skip whitespace and why not to forget to read the newline when skipping whitespace), and how to serialize and deserialize classes to disk. Often times we'll save classes in JSON or XML format, but today I just did something simple.


When doing your homework, you can use just one class for both monsters and heroes if you want.


We finished off with some help on doing NCURSES programming, or using my alternative to NCURSES, called colors.h.







Tags:
csci 41
serialization
file i/o
fstreams
ncurses