Able to change volume

This commit is contained in:
amazing-username
2017-04-03 16:20:43 -05:00
commit 6c66073004
9 changed files with 102 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#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;
}