You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
458 B
458 B
CCIoT Homework Lab 1
Slide 11
Problem
class Human
{
public:
Human();
~Human();
std::string name;
int age;
};
Try this:
- Create 4 humans.
- Give them names and ages.
- Retrieve the data from all humans and print it to the screen.
- Print the data for the youngest human.
- Print all humans’ names in descending order by their names.
Solution
See slide11.cpp.