No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I have created 3 separate files but having issues with rationalnumber.cpp saying 'Rational' is not a class or namespace name. Any suggestions? Below is what should happen.....but I'm stuck thanks the RationalNumber class should overload the stream insertion (<<) and stream extraction (>>) operators. The stream extraction operator should prevent … |
|
write a program that reads in a list of names and stores them in [I]vector<person>. [/I]Then ask the name of the best friend for each person in the list. For each best friend, locate the Person object matching the best friend and call a [I]setBestFriend(Person* newBestFriend) [/I]memeber function to update … |