mirror of
https://github.com/dancojocaru2000/y3s2-cciot-hw.git
synced 2025-02-23 01:19:34 +02:00
.. | ||
README.md | ||
slide11.cpp |
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.