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

21
oop_hw4/hw123/walker.h Normal file
View File

@@ -0,0 +1,21 @@
#pragma once
#include <iostream>
#include "thief.h"
#include "police.h"
using std::string;
using std::cout;
using std::cin;
class walker {
private:
string name;
double money;
bool stolen;
public:
walker();
walker(string n, double m, bool c);
double money_print();
walker& zero();
void display();
};