Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdlib.h>
- using namespace std;
- int main(int argc, char **argv)
- {
- while(argc > 0 && argc < 100)
- {
- //runs a terminal command to set fan speed at 'argc' which is the argument for fan power..
- if(system("aticonfig --pplib-cmd \"set fanspeed 0 "+ argc + "\""))
- {
- cout << "Fan Speed: " << argc<<endl;
- }
- else
- {
- cout << "Fan Speed Set Fail\n";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement