Thread: showing progress on muliple lines

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    2

    showing progress on muliple lines

    I would like to update more than one line when displaying the progress of my program.

    section of my Current code is:-

    cout << "\r "<< currentfile <<"/"<<totalfiles;
    This will output
    32/100



    At the moment it rewrites that line (/r) with the process therefore i can only have it as one line. I would like to display it as:-

    Files Copied 32
    Total Files to copy 100

    It would therefore have to update two lines so i can`t use /r

    Any ideas?

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    gotoxy()
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 10-07-2008, 06:19 PM
  2. Displaying Progress.
    By samus250 in forum C Programming
    Replies: 15
    Last Post: 04-11-2008, 03:56 PM
  3. Print out first N lines
    By YoYayYo in forum C Programming
    Replies: 1
    Last Post: 02-21-2008, 12:58 AM
  4. Line Counting
    By 00Sven in forum C Programming
    Replies: 26
    Last Post: 04-02-2006, 08:59 PM
  5. Creating a progress window
    By Xzyx987X in forum Windows Programming
    Replies: 6
    Last Post: 10-06-2004, 04:02 PM