KO
|
EN
gitlite — search
Search
#python
#dsh-plugin
#java
#ai-agents
#deepseek-harness
#dsh
#typescript
#game
#cli
#ai
#windows
#android
progress_bar_cpp
★ 46
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
MTool
:
Nodemcu RF433 Tool
svelte-toasts
:
A highly configurable notification/toast component with individual toast state management capabilities.
lego-mindstorms-51515-jetson-nano
:
Combines the LEGO Mindstorms 51515 with the NVIDIA Jetson Nano
ucaip-labs
:
Code labs for Vertex AI
siyuan-themes-tsundoku-dark
:
a simple and beautiful theme for siyuan-note
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
progress_bar_cpp
?
Download (.md)
# A Progress Bar for C++ ### This is a simple library for progress bars in c++. ## The output of examples/example.cpp:  ## Documentation: - Initializing a progress bar - `ProgressBar name(char notDoneChar, char doneChar,unsigned int size)`, notDoneChar is what the bar will be filled with before it starts to do a process, doneChar is what the progress bar will fill up while a process is being done. size is the size of the bar. - `fillUp()` - Fills the bar by 1 everytime it is called. - `fillUpCells(int cells)` - Fills the bar upto a given number. - `displayPercentage()` - Displays the percentage of work done. - `displayTasksDone()` - Displays number of tasks done out of the number of taks to be done eg.`(1 / 28)` - `end()` - Call this function before printing anything to the terminal and when the bar is no longer needed. - `getSize()` - This function returns the size of the progress bar (the number of cells). ## Try it yourself: - example.cpp - You can do it by using `make example` assuming you haven't moved any files. Use `./example` to run it. - practical_example.cpp - You can do it by using `make practical` assuming you haven't moved any files and you do have the development version of libcurl installed. Use `./practical` to run it. ### To install libcurl: #### Debian: `sudo apt install libcurl4-openssl-dev` #### Arch: `sudo pacman -S curl` - And finally You can use `make clean` to clean the .o files and the executables