Answered You can hire a professional tutor to get the answer.

QUESTION

C++ p3 1) Describe briefly what exceptions are and what their purpose is. What is the try block? What is the catch block?

C++

p3

1) Describe briefly what exceptions are and what their purpose is. What is the try block? What is the catch block? What happens with the flow of control if the catch block does not catch a thrown exception? Give a simple example.

2) Describe briefly what templates are and what their purpose is.

3) Write one line of code for each line below. What is the template type in each case?

- produce a vector to store student IDs

- produce a vector to store student names

- produce a vector to store Point2D points

- produce a set to store unique (no duplicates) student names

- produce a set to store unique (no duplicates) student IDs

- produce a map that maps student IDs to their score

- produce a map that maps student IDs to their name

- produce a map that maps student names to the name of their lab partner

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question