开发者

DOS Character for Smiley Face?

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜