Answers for "c++ progress bar"

C++
1

c++ progress bar

cout << "[";
        int pos = value;
        for (int i = 0; i < 100;i++) {
            if (i < pos)
            {
                cout << "=";
            }
            else if (i == pos)
            {
                cout << ">";
            }
            else
            {
                cout << " ";
            }
        }

        cout << "] " << int(value) << " %\r";
        cout.flush();
Posted by: Guest on January-09-2021

Browse Popular Code Answers by Language