修复添加化妆品无法更改过期时间的bug

This commit is contained in:
2025-09-29 10:47:25 +08:00
parent 1068d32886
commit a2f2a82a9c
5 changed files with 22 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ public:
void addCosmetic(const Cosmetic& cosmetic);
bool deleteCosmetic(const std::string& name);
Cosmetic* findCosmetic(const std::string& name);
bool modifyCosmetic(const std::string& name, double newPrice, bool newType);
bool modifyCosmetic(const std::string &name, double newPrice, bool newType, std::string string);
void loadFromFile();
void saveToFile();
void displayAll() const;