Hello
can anybody say the shortcut needed for typing the character
" █ "
to be able to type the character in c++ editor window and as well as
show it in the ouput screen
Hello
can anybody say the shortcut needed for typing the character
" █ "
to be able to type the character in c++ editor window and as well as
show it in the ouput screen
Maybe its just me but that shows up as a black box...
Well any non-printable character in code is usually written as say
cout << '\x41';
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
It's an UTF-8 character...
"The Internet treats censorship as damage and routes around it." - John Gilmore
An attached image would be helpful.
If your console background color is black you can try this:
std::cout<< ' ';
or
std::cout<< (char)0xdb;
or summit
Assuming the character he wants to display is the black box.