Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3. using namespace std;
  4.  
  5. int main(int argc, char **argv)
  6. {
  7. while(argc > 0 && argc < 100)
  8. {
  9. //runs a terminal command to set fan speed at 'argc' which is the argument for fan power..
  10. if(system("aticonfig --pplib-cmd \"set fanspeed 0 "+ argc + "\""))
  11. {
  12. cout << "Fan Speed: " << argc<<endl;
  13. }
  14. else
  15. {
  16. cout << "Fan Speed Set Fail\n";
  17. }
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement