- Send your homework (ZIP or RAR file) to TA at cs101-ta@voip.edu.tw
- Deadline:2007/12/14 11:00 AM
- Subject of email: [CS101 HW11] 91234567
- Create New Project
- Choose Project types and Templates
- Name:
- HW11_1_91234567
- HW11_2_91234567
- Compress the folder to a ZIP or RAR file
-
HW11_1
(From: Exercise 1 on P.230)
Write a native C++ program that allows an unlimited number of values to
be entered and stored in an array allocated in the free store.
The program should then output the values five to a line followed by the
average of the values entered. The intitial array size should be five
elements.
The program should create a new array with five additional elements when
necessary and copy values from the old array to the new.
-
HW11_2
(From: Exercise 2 on P.230)
Repeat the previous exercise but use pointer notation throughout instead
of arrays.