CMPT 127 Lecture Notes - Lecture 25: Object Copying, Composite Data Type, C Dynamic Memory Allocation

170 views7 pages

Document Summary

Lab 5: composite data types struct and typedef; m alloc() practice. After this lab you will be able to: create and use structured composite data types with typedef and struct, implement an interface to a collection using structures. In the terminal: create and git add the new directory "5" to the root directory of your repository, then make it your working directory. (exact commands ommitted - you should know how to do this by now. Refer to earlier labs if necessary): fetch the header file containing lab 5 tasks: You can also get the header file from your browser at http://www. cs. sfu. ca/~vaughan/127/intarr. h. It is often useful to collect multiple data items together into a single logical entity: a com posite data type. For example, consider the raster images from lab 3, each described by a pointer to an array of data, a width and height. All three items are required to interpret the encoded image.

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