{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

HW1P2_vector.rtf - CS311 Yoshii Homework 1 Part 2 Vector...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS311 Yoshii - Homework 1 Part 2 Vector Stack (based on Week2) ========================================== ===================== Due: Week 4 Wednesday Total: 18 points Your score is: Your name: Parth Kapur Date submitted: 9/20/2017 ========================================== ================= Purpose: To appreciate the fact that we can use a different implementation of a stack. ========================================== ================= Review Questions: [3pts]<answer here> Your score: Q1. Name 3 types of information found in an activation record of a function. The three types of information found in an activation record of a function are parameter, local variable, and return type. Q2. What is the name of the stack that holds activation records? The name of the stack that holds the activation records is called the Run-Time Stack. Q3. Where are dynamically allocated data structures found? Dynamically allocated data structures are found in the heap. Programming - Vector-based Stack: [3+12=15pts] Your score: Re-write the HW1P1 stack class ( copy and then rename as vstack.h and vstack.cpp first ) so that It now uses a vector instead of an array.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}