User Tools

Site Tools


haas:spring2016:cprog:projects:cos0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:spring2016:cprog:projects:cos0 [2016/03/07 17:21] – [Prerequisites/Corequisites] wedgehaas:spring2016:cprog:projects:cos0 [2016/03/07 17:30] (current) – [Program] wedge
Line 40: Line 40:
     * *(argv+4): center x of circle (a value of 0 should result in auto-centering of x with respect to width)     * *(argv+4): center x of circle (a value of 0 should result in auto-centering of x with respect to width)
     * *(argv+5): center y of circle (a value of 0 should result in auto-centering of y with respect to height)     * *(argv+5): center y of circle (a value of 0 should result in auto-centering of y with respect to height)
 +    * *(argv+6), if present, will be the name of the output image file produced. If it is absent, assume the default name **cos0.png**.
   * image width, height is at least 800x600 (can be larger, but not huge, don't go beyond 1280x1024)-- and specified on the command-line when running the program   * image width, height is at least 800x600 (can be larger, but not huge, don't go beyond 1280x1024)-- and specified on the command-line when running the program
     * if the information isn't supplied, display an error and exit with non-zero status     * if the information isn't supplied, display an error and exit with non-zero status
Line 55: Line 56:
  
 ====getting started==== ====getting started====
-You may make use of the following skeleton program to assist you in doing this project:+You may make use of the following skeleton program to assist you in doing this project
 + 
 +Note that this code is not in conformance with project specifications, but is provided to give you a starting place for modifications and additions:
  
 <code c> <code c>
 /* /*
- * PROGRAM.c  - skeleton code to use the GD graphics library to create + * PROGRAM.c  - skeleton code to use the GD graphics library 
-              an image.+              to create an image.
  *  *
  * To compile:  gcc -o PROGRAM PROGRAM.c -lgd  * To compile:  gcc -o PROGRAM PROGRAM.c -lgd
haas/spring2016/cprog/projects/cos0.1457371285.txt.gz · Last modified: 2016/03/07 17:21 by wedge