Skip to content

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.

Notifications You must be signed in to change notification settings

NagiPragalathan/first-project

Repository files navigation

Train Ticket Reservation System

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.

Features

  • 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.

Technologies Used

  • Programming Language: C

Files

  • 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.

Installation and Usage

Prerequisites

  • C compiler (e.g., GCC)

Steps

  1. Clone the repository:

    bash

    Copy code

    git clone https://github.com/NagiPragalathan/first-project.git cd first-project

  2. Compile the program:

    bash

    Copy code

    gcc main.c Train_Ticket_Registration.c -o TrainTicketReservation

  3. Run the executable:

    bash

    Copy code

    ./TrainTicketReservation

How to Use

  1. Booking a Ticket:
    • Follow the prompts to enter train and passenger details.
  2. Viewing Tickets:
    • Select the option to view booked tickets.
  3. Cancelling a Ticket:
    • Choose the cancel option and enter the ticket details.
  4. Viewing Train Details:
    • Select the option to display train information.

Contributors

License

This project is licensed under the MIT License. See the LICENSE file for details.

Repository Link

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages