C with classes

This commit is contained in:
e2hang
2025-12-31 00:39:23 +08:00
commit a047893756
198 changed files with 11173 additions and 0 deletions

View File

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