Video on Working with a Vector of Structures About Stars
This video describes a set of code examples (functions and scripts) for processing data about a set of stars. The data is stored in a vector of structures, where each structure contains the name, constellation, and temperature of a star. We explore functions that perform tasks like printing information about all the stars, printing the names of stars in a particular constellation, printing the temperature of a star with a particular name and constellation, finding the hottest star overall, and finding the hottest star within a particular constellation. The examples provide further background for the programming problem in the new version of Assignment 5.
Lecture Video
The following link takes you to the video posted on YouTube:
The video file is also stored in the folder on Google Drive that we shared with you earlier.
The video file in this folder is named starsExamples.mp4
(673 MB).
Video Transcript
The following pdf file provides a transcript of the video:
This pdf file is also stored in the shared folder on Google Drive.
Code Files
Code for the stars examples can be found in the cs112
course directory on the
CS file server, in a folder named stars
(also stored in the shared Google folder).
A zip file with the code folder is also posted on the
course schedule page, on the
April 2nd lecture spot.