开发者

DOS Character for Smiley Face?

开发者 https://www.devze.com 2023-03-23 05:37 出处:网络
Does anyone know the bits involved in printing a smiley face in DOS? Talking about this character: ☺

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

精彩评论

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

关注公众号