I am a beginner in C++ coding. Now I am making a little text based game and i need to do a loading screen. I've kind of made one but i want to fill it with this shape ■. What i know is that the ascii code for it is "\u25A0".
The code looks like that.

#include <iostream>
using namespace std;

int main ()
    cout << "                                LOADING", _sleep(300), cout << " .", _sleep(300), cout << " .", _sleep(300), cout << " ." << endl;
    cout << "                     [";
    for (int a = 1; a<30; a++) 
        cout << "■";
    cin.sync(); cin.ignore();
    cout << "]" << endl;

    return 0;

A good start but is there a question or are you asking folk to run this code and see if it works?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.