Search Results
7/4/2025, 3:56:03 AM
code review pls? (C++)
https://onlinegdb.com/PuRa7UdhW
Ultimately I want to create a little GUI where I can select from a pair of dropdowns a device and the port I want to add it to, then I can plug in the device and it will just work because the system has configured it on object creation and is read/writing in whatever manor it needs to for that specific device.
Main thing I'm thinking of right now is how to identify each device so that manager can find a specific one again later. Also I don't like the duplication of the listAllowedPorts function on each derived class but I don't know a way around that
https://onlinegdb.com/PuRa7UdhW
Ultimately I want to create a little GUI where I can select from a pair of dropdowns a device and the port I want to add it to, then I can plug in the device and it will just work because the system has configured it on object creation and is read/writing in whatever manor it needs to for that specific device.
Main thing I'm thinking of right now is how to identify each device so that manager can find a specific one again later. Also I don't like the duplication of the listAllowedPorts function on each derived class but I don't know a way around that
Page 1