showing progress on muliple lines

This is a discussion on showing progress on muliple lines within the C++ Programming forums, part of the General Programming Boards category; I would like to update more than one line when displaying the progress of my program. section of my Current ...

  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-20-2008, 11:58 PM
  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21