Thursday, May 9, 2013

Progress bar for Console program

During processing a bunk of computation, people always eager to know how far from finish. The progress bar is exactly design for it.

Console program does not support those fancy GUI, therefore something like below might be preferred.

[======>                    ] 37%

The following code should be able to help you accomplish it.
Generally speaking, you could call this function as below:
PS:
You could also get access to this code at: https://gist.github.com/lbl1985/5552400
It is also part of my toolbox_c at: https://github.com/lbl1985/toolbox_c

No comments:

Post a Comment

prettify