Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.33 KB

readme.md

File metadata and controls

32 lines (24 loc) · 1.33 KB

Computer Science I

Hack 7.0 - Arrays - Repository

School of Computing
College of Engineering
University of Nebraska-Lincoln
University of Nebraska-Omaha

This project contains starter code and image library functionality (from https://github.com/nothings/stb) for Hack 7.0 from Computer Science I.

We have provided a full makefile that you can use to build all testing code and programs.

  • To build everything run the command make all

  • To build the array tester: make arrayUtilsTester which will produce a program named arrayUtilsTester

  • To build the image driver program (to test your flip and rotate functions visually) use make imageDriver which will produce a program named imageDriver. See imageDriver.c for the full usage of this program. Some examples:

    • Flip avery.jpg horizontally, saving to a file named avery-horizontal.jpg:
      ./imageDriver avery.jpg avery-horizontal.jpg 1

    • Flip avery.jpg vertically, saving to a file named avery-vertical.jpg:
      ./imageDriver avery.jpg avery-vertical.jpg 2

    • Rotate avery.jpg, saving to a file named avery-rotate.jpg:
      ./imageDriver avery.jpg avery-rotate.jpg 3