-
Count Down
i was wondering if someone knew an effective way to make a program that is able to count down but does not fill the screen. i would hope it to look like this.
Percent Complete: 12% (and I would wish that only the digit changes) if anyone could drop me a hint on how it would work i'd appreciate it
-
Here's how
you can use gotoxy(x, y)
to print the text at a particular point everytime...
keep the x, y coordinates the same and it will print at
the same spot.
Hope this helps.
http://mahurshi.tripod.com/mainframes.htm
-
Code:
#include <windows.h>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
for(int i = 0; i <= 100; i++)
{
cout << i << "% Completed";
Sleep(500);
system("CLS"); // clear the screen after 500 milliseconds
}
cout << "\nInstallation Complete";
return 0;
}
something like that