I use Linux and by default (or at least in my case) it does not have screen brightness control, however it has a program that can control it.
The question here is that I want to get the value of the "user" and use this value in a function type: system("sudo light - Valor que receber aqui");
, to get the value and use in the function with C ++?
What I've done so far (I'm implementing things I use daily): ideone.com/QFHA6c