Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Hotel Management System

A C++ Project for Managing Customer Records


Overview

This is a simple Hotel Management System implemented in C++ that allows you to manage customer records for a hotel. It's an educational project designed to showcase essential file handling and data management concepts within a command-line interface.


Features

  • Book a Room: Book a room by entering customer and room details. The data is stored persistently in a file.
  • Search Customer Details: Find a customer's details (name, address, bill) by entering their room number.
  • Display Allotted Rooms: View the total number of rooms currently booked.
  • Modify Customer Record: Update a customer's details by providing their room number.
  • Delete Customer Record: Remove a customer's record from the system by their room number.
  • Exit: Gracefully exit the program.

How It Works

The program operates as a command-line application that interacts with a file to store and retrieve data.

  1. The system uses a Customer struct to store customer details like room number, name, address, and bill amount.
  2. Data is read from and written to a file named "customer_records.txt".
  3. A switch statement in the main function handles user input from a menu to execute different functionalities.

Usage

  1. Compile the code: Compile the C++ code using your preferred C++ compiler.
  2. Run the program: Execute the compiled program to see the Hotel Management System menu.
  3. Select an option: Use the menu to perform actions like booking rooms, searching for details, or modifying records.
  4. Customer Records: All data is stored in "customer_records.txt".

Code Structure

The program is structured around a Customer struct and a set of functions that handle file I/O operations (readCustomerRecords, writeCustomerRecords). The main program loop is managed by a switch statement that processes user input.


Note

This is a basic system for educational purposes. For a real-world application, it would require more robust error handling, data validation, security, and the use of a proper database for more efficient data management.

About

A robust, console-based Hotel Management System implemented in object-oriented C++. Designed to streamline daily hospitality workflows, the application manages room allocations, dynamic check-in/check-out procedures, guest billing algorithms, and feature-rich room service ordering. It integrates a lightweight flat-file handling mechanism.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages