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...

Qt Code:
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main ()
  5. {
  6. int n;
  7. cout << "Enter the starting number > ";
  8. cin >> n;
  9.  
  10. while (n>0) {
  11. cout << "%" << n << endl;
  12. --n;
  13. }
  14.  
  15. cout << "FIRE!";
  16. return 0;
  17. }
To copy to clipboard, switch view to plain text mode