[Solved] C++ How to make text health bar
You need to print : for each strength point and fill the remaining with spaces (capacity). There are several methods. Method 1: The loop cout << ‘{‘; for (unsigned int i = 0; i < capacity; ++i) { if (i < strength) { cout << ‘:’; } else { cout << ‘ ‘; } } … Read more