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
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.
Other Videos By Bill Kerney
2021-03-16 | Week 10 Day 1 - Fast Inverse Square Root and Duff's Device |
2021-03-16 | Week 10 Day 1 - Guest Lecture + Animation |
2021-03-16 | Week 9 Day 1 - Algorithms |
2021-03-15 | Week 10 Day 1 - BSTs Part II |
2021-03-13 | Extra Credit Workshop: Sea Shanties |
2021-03-13 | Week 8 Day 3 - Quantifier Fallacies and Cognitive Biases |
2021-03-12 | Week 9 Day 3 - Binary Search Trees |
2021-03-12 | Week 9 Day 2 - Matrix Multiplies and Interactivity |
2021-03-11 | Lecture 9 Day 2 - Floating Point Numbers |
2021-03-11 | Week 8 Day 2 - Online Privacy |
2021-03-10 | Week 9 Day 2 - File I/O with Classes and NCURSES Programming |
2021-03-09 | Week 9 Day 1 - Matrix x Vector, Traceline |
2021-03-09 | Week 9 Day 1 - Hex & Octal, Image Processing, NEON |
2021-03-09 | Week 8 Day 1 - Corporate Censorship |
2021-03-08 | Week 9 Day 1 - How to UNIX |
2021-03-06 | Week 7 Day 3 - Is/Ought |
2021-03-05 | Lecture 8 - Procedural Generation |
2021-03-05 | Week 8 Day 3 - Deques, Pairs, Tuples |
2021-03-04 | Week 8 Day 2 - Cross Product |
2021-03-04 | Week 8 Day 2 - SIMD |
2021-03-04 | Week 7 Day 2 - Modal Logic |
Tags:
csci 41
serialization
file i/o
fstreams
ncurses