cbourke / CSCE155-Hack7.0

Starter files for Hack 7.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Starter files for Hack 7.0


Languages

Language:C 99.8%Language:Makefile 0.2%