vixvify/airplane-booking ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple airplane seat reservation system in C++17 for 20 seats, with a client and server that talk through System V message queues.
I want to be able to run a few different scenarios from Docker Compose, one where everything is sequential, one where several clients can race without protection, and one where the server uses per seat locking so only one client can reserve the same seat at a time. Please include client commands for checking seats, reserving, canceling, and quitting, plus scripts to run the concurrent test and a small demo with several clients. It should also save logs and results in a clear folder structure so I can inspect what happened after each run. If you need to look up current docs or best practices for Docker, Compose, or System V IPC, feel free to do that.
Are you gonna build this?
make sure you review the code using arcumet