flâneur — a map of the web's best reading

CS107 Assignment 3: A Heap of Fun

web.stanford.edu · 5,215 words · saved by 1 readers

This assignment delves into pointers, arrays, and dynamic memory. You will be building your skills with: You shouldn't need material related to generics and void * for this assignment - in other words, this assignment focuses just on the material related to pointers and the heap. In this assignment, you will implement simplified versions of the unix commands uniq and tail. There are three parts to the assignment: A few reminders: To get started on the assignment, clone the starter project using the command The starter project contains the following: As you work through each part of the assignment, make sure to take time to review and understand the provided code in each part. The provided code relies on reading files, which works similarly, but has different syntax, across different languages. Refer to our guide to the C Standard Library (or your favorite C reference) to get an overview of how file-reading works in C. The test program mycat.c is given to you fully implemented for testi

CS107 Assignment 3: A Heap of Fun Assignment 3: A Heap of Fun --> Due: Wed Oct 26 11:59 pm Late submissions accepted until Fri Oct 28 11:59 pm Assignment by Julie Zelenski and Michael Chang, with modifications by Nick Troccoli Learning Goals This assignment delves into pointers, arrays, and dynamic memory. You will be building your skills with: manipulating pointers & arrays managing memory allocation on the stack and heap using the C library I/O functions using tools such as Valgrind to help track down memory errors and leaks You shouldn't need material related to generics and void * for this

Explore this link on the map →

related reading