This is the code that I have played with in each class. Obviously it is only the final version of the code that resulted from all the things that were tried in class.
test15f.c
Nov.20 continued linked list examples
Linked lists sorted using bubble sort.
test15.c
Nov.20 class examples
Linked lists built in sorted order.
New elements added at beginning, middle, or end of linked list.
test14.c
Nov.15 class examples
More structs with pointers to make
linked lists ordered by how the data is entered.
New elements added at end of linked list.
testtime.c
Nov.6 class examples
System time and date stuff
This version works (and is slightly different than what I did in class)
so check the details before you use it.
test13.c
Nov.1 class examples
More structs with sorting and arrays
test13e.c
Demonstrating reading from a file and tokenizing a string
Uses
test13data.txt
as input
test13f.c
Demonstrating reading until the end of a file
Uses
test13datab.txt
as input
test12.c
Oct 30 class examples
More pointer examples and arrays
test12e.c
with commented out material removed from file
Also has a little bit of two dimensional arrays with pointers
tl3.c
A function to use for printing room types
No deduction for using this code with its returned pointer
You may also write functions to print stock types and staff types in a similar fashion with no deduction
test11.c
Oct 25 class examples
Pointer examples
test10.c
Oct 23 class examples
Structs stuff
test10e.c
with commented out material removed from file
test9.c
Oct 18 class examples
Merge sort
test9e.c
with commented out material removed from file
l3v2.c
Code to use for building Lab 3 room names with number appended
Also code for pulling the numbers back out of the names
test8.c
Oct 11 class examples
File I/O and getline with other string stuff
File to test code with
testtext.txt
test7.c
Oct 4 class examples
Bits of bubble sort
test6b.c
Office hour examples Sept 26
Testing and reading char values
I'm finally getting around to this on Sept. 17 so I'll just post all the files that have been worked on so far, then update after each class.
test6.c
Sept. 25 class examples
switch statement
test5.c
Sept. 20 class examples
String input with %s. Testing and copying strings
test4.c
Sept. 13 class examples
working with arrays
test3.c
,
S5test3.c
Sept. 4 class examples
input with scanf and arithmetic
test1.c
,
test2.c
,
record1.txt
Aug. 28 class examples