Question: C++ I am unsure on how to implement all the features in one program. noah_family.txt holds the following two collums: Noah Shem Noah Japheth Noah
Goal: 1. Learn how to use constructor to load data for the private data members, such as array or vector, of the class. These data are loaded into the objects by using "new" operators and the objects are linked by the array (or vector) pointers. 2. Learn how to use destructor to release dynamically allocated memorY Use class, struct and vector to implement a family tree which is top part of the one below The Genealogy of Noah came to rest on Mt Arrarat (in hem Japheth Ham Europe Fohi or Yao (Noah) Arphaxad Tiras Cush Phut Shalaha Gemer Magog Eber Peleg Reu as Serug Nahor u Terah s Meshech Assyrin llisterical Source Biblieal Records Non-Kiblical Sources Shin-Nong Nahor Abramis Whang-Ti This simplified version of family tree only takes spear side into account. In this HW, there will be only four persons: Noah and his three sons. Input file, named noah_family.txt, has two columns: (1) Haran (Abraham) Lot 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
