posted Apr 1, 2016, 10:27 AM by Jill HUBBARD
- Last Class
- Implement Activity Classes:
- Add_Info(char more_info[], int month, int year);
- Display_all (char season[]);
- Today finish
- Create class adventure. Notice its private data should be a a dynamically allocated array of activities, an integer to keep a count of the number of activities, and an integer for the size of the array created.
- Now implement the adventure constructor and destructor. What should they do?
- Now implement the New_Activity(); member function. It should add an activity to the array of activtiies.
- Now implement the Display_all();function and test it
- Now implement the Display_all (char season[]); overloaded function and test it
OPPORTUNITIES (on Twitter @jillhubbard) - NW Advanced Programming Workshop - http://nwapw.org/about/
Independent Study - Check-in
- Chris F - done
- Ian & Sam (after break)
Homework-College Credit - College Credit - Finish Assignment 4
- Suggested Videos: Watch Topic 4 Videos. Watch all parts (1-4).
- Suggested Reading: C++ programming from problem analysis to program design [5th edition] Chapter 14 (pointers) and Chapter 18 (linked lists). The book is in the classroom dropbox folder -> computer science assignments -> book -> CS162 BOOK
|
|