Hey all. I was making a program for my dad and I am painstakingly close to finishing. The only thing I have left to figure out is how do you make a program that will open another program or execute another part of the code at a certain time, I was thinking something along the lines of a while loop that has a variable that changes with the time and a variable that says lets say 12 (for noon and midnight) then it just keeps going on with this loop, that would look like this I believe:
Code:
while(timevariable != staticvariable){
\\changes timevariable with the time (if it does change)
}
\\ gets out of the loop when the time is equal
system("file being opened");
the thing I need to know is, how do you change timevariable so it equals the time
thanks, xniinja