Classwork 22
Logistics
- Due: Wednesday, April 9th AoE.
- Submission instructions: make sure that the required file (
digit.c
) is in yourcsci112_spring2025/classwork/week13/wed/
directory. - Deadline reminder: after the deadline passes, you cannot earn any points for this assignment.
Learning outcomes
- Practice creating a simple linked list
Assignment
- Log in to the server.
- From your home directory, navigate to
csci112_spring2025/classwork/week13/wed/
, creating directoriesweek13
andwed
if necessary. - Copy the file
/public/classwork/week13/wed/digit.c
into your directory.
Fill in the three TODO
items so that the program defines a digit
struct
with an int
field called d
and a pointer to another digit
called next
,
and then creates three digit
nodes in main
and connects them to form a
linked list. When you are finished, the compiling and running the program
should look like this:
[g73x595@csci112 wed]$ gcc digit.c -Wall
[g73x595@csci112 wed]$ ./a.out
1->2->3->
Autograder
You can run the autograder by running
/public/classwork/week13/wed/autograder.sh
The file autograder.txt
will be created with your score.
Grading turnaround
The autograder will be run at 6am to calculate final scores. Scores will be uploaded to D2L by the next class period.