Like so?
tw=time waster
EDIT: WHY WON'T THIS SoB WORK?!?
Code:
#include <conio.h>
#include <fstream.h>
#include <iomanip.h>
#include <iostream.h>
//This is the start of my program.
int main()
{
//prints to the text file.
ofstream outfile ("500.txt");
//Declaring my variables.
int hours;
int minutes;
int seconds;
int tw=1000;
cout << "This program, will function as a countdown 'clock'. Please enter your value for hours, then your value for minutes, followed by your value for seconds.\n";
outfile << "This program, will function as a countdown 'clock'. Please enter the number you would like to countdown from.";
cin >> hours;
cout << "hours";
cin >> minutes;
cout << "minutes";
cin >> seconds;
cout << "seconds";
while (hours >= 0)
{
while (minutes >= 0)
{
while (seconds > 0)
{
while (tw>0)
{
tw--;
if (tw==1)
seconds++;
}
seconds = seconds - 1;
}
seconds=60;
minutes=minutes - 1;
}
minutes = 59;
hours = hours -1;
}
cout << "Time's up!";
//That stuff at the end.
getch();
return 0;
}