Does anyone know the bits involved in printing a smiley face in DOS?
Talking about this character: ☺
By bits I mean the bits in the character (or int) such that I 开发者_JS百科could specify those bits in C and have it print a smiley face.
Try running this
#include <iostream>
using namespace std;
void main()
{
for(int i = 0; i < 255; i++)
cout<<i<<"\t"<<char(i)<<endl;
}
Edit: It appears to be char(1)
It's the integer 1
Here's the examples for code page 437: https://en.wikipedia.org/wiki/Code_page_437
Do this keyboard shortcut Alt+1
精彩评论