It is a hotel management system using C programming.
The Hotel Management System is a simple, console-based application developed in C. It is designed to handle basic hotel operations such as adding and viewing customer information. This project highlights key C programming concepts such as modular programming with separate source and header files, the use of structures (struct) for organizing customer data, and functions to keep the code clean and reusable. It also features a menu-driven interface, making the system simple to use and easy to expand with additional functionality in the future.
The project is divided into three files to showcase the concept of modular programming in C:
- main.c-The entry point of the program. It contains the menu and handles user interaction.
- customer.c-Contains the implementation of customer-related functions such as adding and viewing customers.
- customer.h-The header file that defines the structure of a customer and declares function prototypes for use across files.
- Open Dev-C++.
- Go to File → New → Project → Console Application → C Project.
- Add your
.c
files (main.c
andcustomer.c
) to the project:- Project → Add to Project → select files
- Click Compile & Run (F11 or Ctrl+F10 depending on version).
- Your console menu will appear, and you can interact with your program.