CMPT 127 Lecture Notes - Lecture 28: Include Directive, Increment And Decrement Operators, Null Pointer

172 views6 pages

Document Summary

After this lab you will be able to: use an explicit memory allocation strategy for high performance, measure runtime performance with gettimeofday(, use gnuplot to plot performance as a function of input size. In the terminal: add the new directory "8" to the root directory of your repository and make it your current working directory, fetch the new material for lab 8: $ wget http://www. cs. sfu. ca/~vaughan/127/lab8. tgz: expand the archive into the your working directory. The supplied header file point_array. h defines the following structures to represent points in. 3d space, and an array to contain them, similar to examples you have seen before: typedef struct point double x, y, z; // location in 3d space. } point_t; typedef struct size_t len; // number of points in the array point_t* points; // an array of len point_t structs. It also declares four functions for manipulating point_array_t arrays. Each takes a pointer to an array structure as their first argument.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents