Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 500 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 500 Bytes

Traffic Light Simulation

This project simulates a traffic light with a pedestrian crossing button. The traffic light has three states: green, yellow, and red. The pedestrian crossing button can be pressed to change the traffic light to red, allowing pedestrians to cross.

Dependencies

  • C++11 or later
  • C++ Standard Library

How to Run

  1. Compile the program using a C++ compiler.
  2. Run the executable.

Example Compilation Command

g++ -std=c++23 main.cpp -o trafficlight