Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- struct Person {
- std::string Firstname;
- std::string Lastname;
- unsigned char Age;
- unsigned char Height;
- unsigned char Weight;
- Person(const std::string& firstname, const std::string& lastname, unsigned char age, unsigned char height, unsigned char weight) {
- Firstname = firstname;
- Lastname = lastname;
- Age = age;
- Height = height;
- Weight = weight;
- }
- static void Print(const Person* person) {
- std::cout << person->Firstname << " " << person->Lastname << " is " << person->Age << " years old, weights " << person->Weight << " Killograms and is " << person->Height << " centimeters tall." << std::endl;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement