Simulation of Customer Relationship Management Gaming Project in C++

Explanation:

  1. Customer Class:
    • Represents a customer with name and email.
    • updateEmail(const std::string& newEmail): Updates the customer’s email address.
    • display() const: Displays the customer’s details.
  2. CRMSystem Class:
    • Manages multiple customers using an unordered map (std::unordered_map).
    • addCustomer(const std::string& id, const std::string& name, const std::string& email): Adds a new customer if the ID does not already exist.
    • updateCustomerEmail(const std::string& id, const std::string& newEmail): Updates the email of an existing customer.
    • viewCustomer(const std::string& id) const: Displays the details of a customer based on their ID.
  3. main Function:
    • Demonstrates adding customers, viewing their details, updating email addresses, and viewing updated details.

      Compilation:

      To compile the program, use:

      Run the program with:
       

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top