[cpp] Person.h
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
- #ifndef PERSON_H_
- #define PERSON_H_
- #include <iostream>
- #include <sstream>
- using namespace std;
- class Person{
- private:
- string name;
- unsigned int age;
- public:
- Person();
- string toString();
- void setName(string name);
- string getName();
- void setAge(unsigned int age);
- unsigned int getAge();
- };
- #endif
Editor
You can edit this paste and save as new: