This repository contains a simple train ticket reservation system implemented in C. It includes functionalities for booking, viewing, and managing train tickets. The project demonstrates basic file handling, data structures, and user input/output operations in C.
- Book Ticket: Allows users to book train tickets.
- View Ticket: Displays booked tickets.
- Cancel Ticket: Functionality to cancel a booked ticket.
- View Train Details: Shows details of available trains.
- Programming Language: C
main.c
: Entry point of the application.Train_Ticket_Registration.c
: Contains functions for booking, viewing, and managing tickets.Train_Ticket_Registration_hider.h
: Header file with function prototypes and necessary includes.
- C compiler (e.g., GCC)
-
Clone the repository:
bash
Copy code
git clone https://github.com/NagiPragalathan/first-project.git cd first-project
-
Compile the program:
bash
Copy code
gcc main.c Train_Ticket_Registration.c -o TrainTicketReservation
-
Run the executable:
bash
Copy code
./TrainTicketReservation
- Booking a Ticket:
- Follow the prompts to enter train and passenger details.
- Viewing Tickets:
- Select the option to view booked tickets.
- Cancelling a Ticket:
- Choose the cancel option and enter the ticket details.
- Viewing Train Details:
- Select the option to display train information.
This project is licensed under the MIT License. See the LICENSE file for details.