Assignment 11 - Assignment #11 CS 170A, Spring 2006 Due...

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

View Full Document Right Arrow Icon
Assignment #11 CS 170A, Spring 2006 Due Wednesday, April 19 Part 1 (practice exercises) 1. Read chapter 12 in the text. 2. Do review questions 1, 3, 4, 5 on pages 627–629. 3. Do programming exercise 1. Part 2 (to turn in) Declare and implement a class, named cArray , for creating and manipulating arrays of characters (as opposed to zero–terminated chacter strings). The specific details and requirements are as follows. The actual array storing the characters must be allocated dynamically, and the size of the array should be specified as an instantiation parameter. That is, the code fragment cArray A(57); would create an array of characters of length 57. The array values need not be initialized. Alternatively, an array of characters can also be created and initialized by speci- fying a (0–terminated) character string; i.e., the fragment cArray B = "Step on no pets"; would create an array of characters of length 15 initialized to the first 15 char- acters in the string “Step on no pets” (the terminating 0 is ignored). The
Background image of page 1

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

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

Page1 / 2

Assignment 11 - Assignment #11 CS 170A, Spring 2006 Due...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online