# SimpleSupermarketSaleSystemCppVer **Repository Path**: luke-project-practice/simple-supermarket-sale-system-cpp-ver ## Basic Information - **Project Name**: SimpleSupermarketSaleSystemCppVer - **Description**: 简单超市销售系统 C++ 版本 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-04 - **Last Updated**: 2025-03-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: 软考试题 ## README # 简单超市销售系统 ## 类图 ```mermaid classDiagram class ShoppingCart ShoppingCart: - items ShoppingCart: + calculatePrice() ShoppingCart: + add() class Item <> Item Item: + accept(Visitor visitor) Item: + getPrice() class Visitor <> Visitor Visitor: + visit() class Book Book: + accept() Book: + getPrice() class CD CD: + accept()I CD: + getPrice() class DVD DVD: + accept() DVD: + getPrice() class Cashier Cashier: - totalForCart Cashier: + visit(item* e) ShoppingCart-->Item ShoppingCart-->Visitor Book..|>Item CD..|>Item DVD..|>Item Cashier..|>Visitor ```