Skip to content

Latest commit

 

History

History
99 lines (67 loc) · 3.63 KB

README.md

File metadata and controls

99 lines (67 loc) · 3.63 KB

C_programs: A collection of basic programs in C!o

Programs for COP 3514 Lectures are in their own folder.

Pamplona Lectures

Pointers

Week 5 (Starts at pointer content)
  • pointer_exercise_5_1_1
  • pointer_exercise_5_1_2
Week 6: First Lecture
  • max_pointers_6.1.c
  • find_largest_return_pointer_6_1.c (video: 53:54)
  • find_middle_6_1.c
Week 6: Second Lecture
  • find_two_largest_6_2.c (video: 1:00)
  • ternary.c (video: 10:00) - Demo of the ternary operator in C and pointers.
  • pointer_arithmetic_6_2.c (Video 12:09-58:56) - This one has extensive notes and extra examples.
  • compare_array_6_2.c (video: 59:00)
  • find_elements_6_2.c (Video 105:30)
Week 7: First Lecture
  • class_7_1.c (draft version) (video: near beginning of video)
  • store_zeros_7_1.c (video: 47:14)
Week 8:
  • command_line_arguments_8_2.c - Demo of basics of processing command line arguments.

  • p2_20.c - Problem 20 with notes.

Week 11: First Lecture - Working with files

Please note that the notes for the first lecture are not complete but the notes for Lecture 2 are. The notes for Lecture 2 are more useful for Project 6 so I finished them.

  • canopen.c - checks is a file can be opened (video: 14:00)
  • fcopy.c - copies the content of one file, file1, to another, file2. Usage: ./a.exe file1 file2
  • my_cat - prints contents of a file to stdout
Week 11: Second Lecture - Working with files (continued)
  • dumbbells.c - uses the file dumbbells.txt to demonstrate opening a file to access and process information on that file. (18:32)
  • read_animals_csv.c - demonstrates reading a file line by line using conversion specifiers to skip commas. (45:45)
  • grades.c - demonstrates writing to a file. (59:30)
  • selection_sort.c - opens a file, numbers.txt, reads the numbers in the file to an array, sorts the array, and writes the sorted numbers to a another file. (1:01:38)
Week 12: First Lecture
  • structures - all of the introductory structure concepts in one program! (9:00 - 38:00)
  • colors.c - an application that uses a structure to store and change color information (38:00 - 49:00)
Week 12: Second Lecture
Week 13: First Lecture
  • My Notes
  • link_list.c - a complete example based on the lectures. Includes append, add_sorted, and delete_from_list with examples.
Week 13: Second Lecture

Problems from Test 2 Practice Test

Located in misc_programs/practice_test_2

  • p2_1.c - Problem 1 and Problem 2 with notes.
  • p2_3.c - Problem 3 with notes.
  • p2_4.c - Problem 4 with notes.
  • p2_5.c - Problem 5 with notes.
  • p2_6.c - Problem 6 with notes.
  • p2_7.c - Problem 7 with notes.
  • p2_8.c - Problem 8 with notes.
  • p2_9.c - Problem 9 with notes.
  • p2_10.c - Problem 10 with notes.
  • p2_11.c - Problem 11 with notes.
  • p2_12.c - Problem 12 with notes.
  • p2_13.c - Problem 13 with notes.
  • p2_14.c - Problem 14 with notes.
  • p2_15.c - Problem 15 with notes.
  • p2_16.c - Problem 16 with notes.
  • p2_17.c - Problem 17 with notes.
  • p2_18.c - Problem 18 with notes.
  • p2_19.c - Problem 19 with notes.

Notes and programs from the textbook

  • chapter_22.c - Notes and programs from Chapter 22 on Input/Output