Step 0
Make a new directory for Lab 12.
Download these files:
Stern Warnings:
- Make sure to compile after every step!
Resolve errors (syntactical or logical) as they
come up, or face utter bewilderment by Step 7.
- If you become lost or confused, do not be afraid to ask for assistance. understanding the concept of linked lists is not only crucial to Project 5, but also the Final Exam.
Continue on to Step 1 to get started.
linux3[5]% gcc -ansi -Wall -c lab12.c
lab12.c: In function 'main':
lab12.c:38: warning: unused variable 'head'
lab12.c:34: warning: unused variable 'id'
lab12.c: In function 'ReadFile':
lab12.c:105: warning: unused variable 'tempNode'
lab12.c:104: warning: unused variable 'tempStudent'
linux1[6]% gcc -Wall -ansi -c linkedlist.c
linux1[7]% gcc lab12.o linkedlist.o
linux1[8]% a.out
Not enough command line arguments!
Use a.out
linux1[9]% a.out data.txt
Welcome to the last lab of the semester! :)
linux1[10]%