OOP HomeWork

This commit is contained in:
e2hang
2025-08-11 00:01:30 +08:00
commit e8a5ca2363
119 changed files with 3187 additions and 0 deletions

24
oop_hw4/hw4/man.h Normal file
View File

@@ -0,0 +1,24 @@
#pragma once
#include <iostream>
#include "woman.h"
using std::string;
using std::cout;
using std::cin;
using std::endl;
class woman;
class man {
private:
string name;
bool married;
woman* w;
public:
man();
man(string n, bool m, woman* x);
void marry(woman* x);
void devorce(woman* x);
string display();
woman* show();
};