int main()
{
while(true) {
if (CheckDevices(devices))
{
break;
}
}
return 0;
}
bool CheckDevices(Device* devices)
{
for(auto device : devices) {
if(device.pressedButton()) {
return true;
}
}
return false;
}