A C++ console application that allows gym owners to manage member information efficiently.
This Gym Membership Management System is a command-line application built in C++ that enables gym administrators to maintain a database of members, including their personal details and membership information. The system provides a simple interface for performing common membership management tasks.
- Add New Members: Register new gym members with validated personal information
- View All Members: Display a formatted table of all registered members
- Update Member Details: Modify existing member information
- Delete Members: Remove members from the system
- Input Validation: Ensures data integrity with robust validation for names, ages, and phone numbers
- C++ compiler with C++11 support (e.g., GCC, Clang, or MSVC)
- Standard C++ libraries
g++ -std=c++11 main.cpp -o gym_system
clang++ -std=c++11 main.cpp -o gym_system
- Open Visual Studio
- Create a new C++ project
- Add the main.cpp file to your project
- Build the solution (F7 or Ctrl+Shift+B)
After compiling, run the executable:
./gym_system # On Linux/Mac
or
gym_system.exe # On Windows
The application presents a menu-driven interface with the following options:
- Add New Member: Enter member details such as name, age, phone number, and membership type
- View All Members: Display all currently registered members in a tabular format
- Update Member Details: Modify an existing member's information by entering their member ID
- Delete Member: Remove a member from the system by entering their member ID
- Exit: Close the application
- Names: Must contain only letters and spaces
- Ages: Must be between 1 and 120
- Phone Numbers: Must be exactly 10 digits
- Member: Represents an individual gym member with personal and membership details
- GymMembershipSystem: Manages the collection of members and provides system operations
Potential improvements for future versions:
- Persistent storage (file or database)
- Search functionality
- Membership renewal and payment tracking
- Attendance tracking
- Reports and statistics
- User authentication for staff
Null
ME ._.