C++
Group lecture vectors
Top of Form
Bottom of Form
Content
·
External resources
Attached Files:
·
group_lec_vector.tgz (1.072 KB)
1. Using a vector to create containers of different types (e.g., vector of floats, vector of Dates, vector of Weapons, etc.)
1. How to add items to a vector
1. How create a loop to access each of the items in a vector
1. How to empty a vector
1. How to delete an item from a vector
The two group members presenting will have 15-20 minutes to teach their group these concepts. After that, the class will take a short quiz.
The attached file is an example program that illustrates most of the concepts that must be presented to the group. Your goal is for your groupmates to understand the concepts with sufficient clarity so that your teammates would be able to code the attached program.
Here are multiple C++ tutorial sites with the sections relevant to this assignment listed. Skim them all and pick at least one to study in more detail. Always try it, try it, try it. Bring up a teminal window on your own computer, or log in to jaguar to experiment with what you're reading.
. http://www.learncpp.com/
7. 16.2 — STL containers overview
. http://www.tutorialspoint.com/cplusplus/
8. C++ Templates
1. http://www.cplusplus.com/doc/tutorial/
9. Vector