Tag: Arrays

CMPT 135: Assignment 1- A Dynamic String Array

IT and WebprogrammingTechnical PapersArraysCMPT 135CMPT135Simon Fraser University

Assignment 1: A Dynamic String Array

In this assignment your task is to implement, and test, a set of functions that implement a dynamic array of strings.

Getting Started

For this assignment, put all the code you write into a single file named a1.cpp. that starts like this:

// a1.cpp

/////////////////////////////////////////////////////////////////////////
//
// Student Info
// ------------
//
// Name : <put your full name here!>
// St.# : <put your full SFU student

VIEW SOLUTION

CMPT 135: An Object-oriented Dynamic String Array

IT and WebprogrammingSource CodeTechnical PapersArraysc plus plusCMPT 135CMPT135Simon Fraser University

Assignment 2: An Object-oriented Dynamic String Array

In this assignment your task is to essentially re-do a assignment 1, but this time using object-oriented programming. The resulting str_vec class is much easier to use than the version in assignment 1 because it manages its memory automatically.

Getting Started

For this assignment, all the code you write should be put into a file named a2.cpp that looks like this:

// a2.cpp

/////////////////////////////////////////////////////////////////////////
//
// Student Info
// ------------
//
// Name : <put your full name here!>
// St.# : <put your full SFU student

VIEW SOLUTION