# Mini_Bank_Project **Repository Path**: Jobs_wmh/mini_-bank_-project ## Basic Information - **Project Name**: Mini_Bank_Project - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-26 - **Last Updated**: 2025-05-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Name: Jobs(魏孟颢) ID:2023903117 cmake order: 1. switch to mini_-bank_-project 2. cmake -B build ; cmake --build build if something wrong 3. cmake -G "MinGW Makefiles" -B build cmake --build build ·class: 1. core Transaction (交易类) ├──负责存储和管理单笔交易信息 Be responsible for storing and managing the information of individual transactions └──包含交易ID、账户ID、用户名、金额、备注和日期等属性 Include attributes such as transaction ID, account ID, username, amount, remarks and date Customer (客户类) ├──代表银行客户 Represent bank customers ├──每个客户拥有一个储蓄账户和一个支票账户 Each customer has a savings account and a checking account └──提供客户信息显示和交易管理功能 Include transaction ID, account ID, username, and provides customer information display and transaction management functions Bank (银行类) ├──系统核心类,管理所有客户和账户 System core class, managing all customers and accounts ├──提供用户界面和业务逻辑 Provide the user interface and business logic └──实现存款、取款、转账等操作 Realize operations such as deposit, withdrawal and transfer 2. account IAccount (账户接口) ├──定义账户操作的通用接口 Define the common interface for account operations └──包括存款、取款、转账等方法 Including methods such as deposit, withdrawal and transfer SavingsAccount (储蓄账户) ├──实现IAccount接口 Implement the IAccount interface ├──限制直接存款和取款操作 Restrict direct deposit and withdrawal operations └──只允许向关联的支票账户转账 Transfers are only allowed to the associated checking account CheckingAccount (支票账户) ├──实现IAccount接口 Implement the IAccount interface └──支持完整的存款、取款和转账操作 Support complete deposit, withdrawal and transfer operations 3. tool IO (输入输出类) ├──处理所有用户输入和屏幕输出 Process all user input and screen output └──提供菜单显示、输入验证等功能 It provides functions such as menu display and input verification Utils (工具类) ├──提供各种实用功能 Provide various practical functions └──包括唯一ID生成、时间处理、目录创建等 Include unique ID generation, time processing, directory creation, etc ·struct Main └── Bank ├── Customer │ ├── SavingsAccount │ └── CheckingAccount ├── Transaction ├── IO └── Utils ·Key desgin 输入验证: IO类实现严格的输入验证 支持中文、数字和特殊字符处理 Input validation: The IO class implements strict input validation Support the processing of Chinese characters, numbers and special characters 唯一ID生成: 使用随机数+校验机制确保ID唯一性 交易ID采用递增计数器 Unique ID generation: Use a random number + verification mechanism to ensure the uniqueness of the ID The transaction ID uses an incremental counter