I want to print this special character █ in visual studio (c++) but I get "?" . The corresponding code that I wrote:
bool b[5][3] = { { true,true,true },{ true,false,true },{ true,false,true },
{ true,false,true },{ true,true,true } };
system("color 0A");
for (int i = 0; i < 5; i++)
{
for (int j = 0; j < 3; j++)
{
if (b[i][j])
{
gotoXY(3 + j, 5 + i);
cout << "█";
}
}
cout << endl;
}