00001 #ifndef _PERSON_H_ 00002 #define _PERSON_H_ 00003 00004 #include <string> 00005 00006 using namespace std; 00007 00013 class Person 00014 { 00016 string name; 00017 00019 int age; 00020 00021 public: 00025 Person(); 00026 00030 virtual ~Person(); 00031 00036 string getName() const; 00037 00042 void setName(const string& _name); 00043 00048 int getAge() const; 00049 00054 void setAge(int _age); 00055 }; 00056 00057 #endif //_PERSON_H_
SEO | [PR] 爆速!無料ブログ 無料ホームページ開設 無料ライブ放送 | ||