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.
- C++11 or later
- C++ Standard Library
- Compile the program using a C++ compiler.
- Run the executable.
g++ -std=c++23 main.cpp -o trafficlight