HW9 - CS1372 Homework 9 Assigned: Due: Thurs, November 2,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS1372 – Homework 9 Assigned: Thurs, November 2, 2006 Due: Wed, November 8, 11:59pm. For this assignment, we implement some graphics-related functions using the MFCdllC graphics package. You must implement a C program that accomkplishes exactly what the attached script does. Caution about Memory Leaks The memory leaks in the graphics library are caused by passing the data in vectors directly to the plotting machinery, so you don't know when to free the vectors. Moral : don't free vectors you have used as parameters to the plot function. Anything else should be freed using vfree(. ..). The following script describes the assignment. The MATLAB script is also supplied. Any functions you write must be included in a file myLibrary.cpp, with headers in myLibrary.h. You should turn in the following files: test_main.cpp – equivalent to the following script myLibrary.cpp – your library code myLibrary.h – your library prototypes % these are done automatically in the C library, of course clear
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

HW9 - CS1372 Homework 9 Assigned: Due: Thurs, November 2,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online