How i can invoke cout to print on the same place .....?
same as linux comman curl -O http ******
and display 20% on console on the same place not new line.... or append on line...
#include <iostream>
using namespace std;
int main ()
{
int n;
cout << "Enter the starting number > ";
cin >> n;
while (n>0) {
cout << "%" << n << endl;
--n;
}
cout << "FIRE!";
return 0;
}
#include <iostream>
using namespace std;
int main ()
{
int n;
cout << "Enter the starting number > ";
cin >> n;
while (n>0) {
cout << "%" << n << endl;
--n;
}
cout << "FIRE!";
return 0;
}
To copy to clipboard, switch view to plain text mode
Bookmarks