Module 14 ¡ Dynamic Memory
Project: A Contact List That Grows on Demand
ProReading
The program reads stdin one line at a time with fgets, and each line holds one command. Words are separated by one or more spaces. A word is any run of characters without a space. The input holds at most 1,000 lines of at most 200 characters each. So a char line[LINE_LEN] with LINE_LEN 256 holds any line with its newline and its zero. The input may be empty, and its last line may have no newline.
Pro lesson
This one goes deeper
It is included with this track and with Learn Pro. Every question on the Skill Test can be answered from the free lessons, so this is depth and never a gate on the certificate.
What is inside Project: A Contact List That Grows on Demand
- The commands
- The end of the input
- Requirements
- Sample input
- Sample output
- Checking the memory
- Optional stretch: a list kept in name order
- Marking rubric
- Submission checklist