注:项目类文章会陆续更新,请大家关注系列文章
创建Girl类
头文件
#pragma once
#include <string>
using namespace std;
class Boy;
class Girl
{
public:
Girl();
Girl(int age, string name, int style);
~Girl();
int getAge() const;
string getName() const;
int getStyle() const;
bool satisfied(const Boy& boy) const;
private:
int age;
string name;
int style;//风格
};