Project:Cainiao_Estation

This commit is contained in:
e2hang
2025-08-11 00:20:16 +08:00
parent 5e70ee5bb3
commit 240cf86644
15 changed files with 841 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#include <iostream>
#include <cstring>
#include "delivery_method.h"
#include "package.h"
#include "user.h"
#include "stock.h"
class Package;
Method::Method() {
pkg = new Package;
money = 0;
danger = false;
}
Method::Method(Package* x, double m, bool b) {
pkg = x;
money = m;
danger = b;
}
void Method::fee() {
money = pkg->create_fee();
}
void Method::set_yndanger(bool flag) {
danger = flag;
}