How to print Progress Bar under linux
This article mainly introduces "how to print progress bar under linux". In daily operation, I believe many people have doubts about how to print progress bar under linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubt of "how to print progress bar under linux". Next, please follow the editor to study!
/ * @ Filename: myprogress.c* @ Author:edwin* @ Description:-* @ Create: 2020-12-19 17 Author:edwin* 0315 15 * @ Last Modified: 2020-12-19 17 15 37 21 * Total size of * * / # include # include / * t dltotal [file] The size of d dlnow's current completion * / int my_progress_print (const char ch,double tjore double d) {char bar [101] = {'\ 0'} Char* lable= "| / -\\"; int pos=0; pos= dumb100 / t; if (pos > 100) return 0; for (int iTunes I)