Modules, packages, and namespaces

F-MODULES-V4-2medium

Connect another consumer

Two museum desks issue tickets from one live serial stream, beginning after 100.

What needs to change

Repair board/desk.cpp so this consumer can issue from the supplied stream.

Reproduce

  1. The starter does not compile; read the diagnostic before changing the code.

Acceptance criteria

Your review marks · Saved in this browser. Test acceptance is tracked separately.

Notes

board/desk.cpp is editable. The supplied desk.hpp, serial.hpp, serial.cpp and main.cpp make up the rest of this project.

Use clang++ -std=c++2c -Wall -Wextra -pedantic main.cpp serial.cpp board/desk.cpp -o program && ./program for this complete project; headers are included, not separately compiled.

The supplied input is one LF/CRLF-delimited line of up to 1000 A/B requests, including an empty sequence. These are valid desk selectors; input validation is not the repair.

Sign in to open this exercise

The ticket brief is public. Sign in to access the exercise. Paid exercises require Pro.

Sign in