Exercises

Day 14 exercises

Fundamentals

New: Git

Use git to retrieve the source code for this course:
git clone git@gitlab.cs.washington.edu:mh75/cse374-materials.git
You should have a new file called cse374-materials What does it contain? Have you received a notification of your new team project space on Git? (If not, please email Dr. Hazen.)

New: HW4

In homework 4 you will be reading string from a file. Get started by creating your own C file.

  1. Create a new file called hw4.c
  2. Add an initial comment with your name, course, and data
  3. What libraries do you need to include? Add code to include them at the top of the file.
  4. Add a main function.
    What arguments and return types does it need?
  5. Add a print statement: printf("Testing\n");
  6. This is a good time to start testing your code.
    • Compile the code
    • Does it run? Does it print the testing statement?
  7. Now start adding code to process the arguments and return a successful exit.