This repository has been archived on 2026-07-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
AudioControl/UpVolume.cpp
T
2017-04-03 16:20:43 -05:00

20 lines
383 B
C++

#include <iostream>
#include <fstream>
#include <ios>
int main(int argc, char* argv[])
{
std::fstream cv;
cv.open("currentVolume.txt", std::ios::out);
const unsigned short INCREMENT = 15;
unsigned short currentVolume = atoi(*(argv + 1));
unsigned short newVolume = currentVolume + INCREMENT;
cv << newVolume;
std::cout << newVolume << std::endl;
cv.close();
return 0;
}