Parameters for external call

Asked

Viewed 80 times

3

I use Linux and by default (or at least in my case) it does not have screen brightness control, but has a program that gives to control.

The point here is that I want to take the "user" value and use this value in a type function: system("sudo light - Valor que receber aqui");, to take the value and use in the function with C++?

What I’ve done so far (I’m implementing items I use daily): ideone.com/Qfha6c

2 answers

4


  • Vlw, I tried to implement, but it gave several errors ( library / functions ) ... I’m making a bigger gambiara even : Imgur.com/a/4cxbM

2

Does it give; just call the function and save the return message. After that, in a new variable, edit the string going on system(); (in this case, will treat it as a variable of type String or a simple string in C itself) and ready. Just play inside system();!

When I say edit the string.. I think a lot about C and the functions of string.h. In C++ it is easier, since there is the type String.

  • Vlw, would you have more information about the process to tell me ?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.