312-174
Lab 3
Spring 2000
Due (In-Lab/PostLab): Monday, 7 Feb, beginning of class.
Turn in your completed pages 45, 49, and 51 in class on Friday. Place all the files that I need to run your solution into a folder labled with your last name(s) and drag it into the appropriate prelab folder in the Turn-In folder on Nova. If I cannot open your folder, double click on your project file, and run your solution (or at least look at it in C++ builder if you haven't completed it), you will not get credit for handing it in.
Turn in pages 56, 57, and 59 in class monday. Place all of the files that I need to run your in-lab solution into a folder labled with your last name and drag it into the appropriate lab folder in the Turn-In folder on Nova.
Late prelabs, bridges, and postlabs will be penalized as described in the study guide.
All results must be put into the appropriate lab folder on the cs174jb nova account.
All prelabs must have a heading identifying the people who worked on the project. Programs must also contain appropriate comments. See style sheets.
Additional requirements:
Hints:
int *x;
x = new int;
To create memory for an array, you must specify how large the array will be:
int *arr1;
arr1 = new int[10];
delete works by simply writing the keyword delete and the name of the variable that you want to delete. Note that the variable name is still valid in the program and you can allocate new memory to it if you wish.
To delete the memory from an array, you must indicate it is an array by preceding the variable name with brackets, but you cannot specify how much memory to delete. Thus to delete the memory allocated to the array buffer I would say:
delete [ ] buffer;
It would be illegal to say delete [20] buffer;
Return to Student Pages
Return to John Barr's Home Page
Last Modified: 4 January 2000
THIS PAGE MAINTAINED BY:
John Barr, Ithaca College