Original Usenet thread from alt.ascii-art, started 12 Apr 2006.
_ _ _ _ _ _ | | | |___ ___ _ __ ___| |_ / \ _ __ ___| |__ (_)_ _____ | | | / __|/ _ \ '_ \ / _ \ __| / _ \ | '__/ __| '_ \| \ \ / / _ \ | |_| \__ \ __/ | | | __/ |_ / ___ \| | | (__| | | | |\ V / __/ \___/|___/\___|_| |_|\___|\__| /_/ \_\_| \___|_| |_|_| \_/ \___|
HELP me with the ASCII character showing
alt.ascii-art
· 2 messages · 12 Apr 2006 - 18 Apr 2006
hi,all
I write a snippet(in VC6.0 PLATFORM) to show the ASCII character
ranging from 0-255.
snippet:
#include "stdafx.h"
#include "stdio.h"
#include "conio.h"
int main(int argc, char* argv[])
{
int i = 0;
for(i = 0; i < 255; i++)
{
printf("%d = %c\n", i, i);
}
getch();
getch();
return 0;
}
IT can normaly show 0-127,but cannot show 128-255 just like "155=?".
what's the problem?
Any one can help?
Thx.
------------------pinkfog------------------
Hi!
That's cause only 0-127 are Ascii characters, take a look on Ascii Art
FAQ:
========================================================================
[3] What does ASCII mean?
========================================================================
ASCII (American Standard Code for Information Interchange)
7-bit as defined in ISO-646 is a basic set of 128 numbered
symbols
which almost all kinds of computer can display. Here are the ones
that are used for ASCII art:
032 [space] 048 0 064 @ 080 P 096 ` 112 p
033 ! 049 1 065 A 081 Q 097 a 113 q
034 " 050 2 066 B 082 R 098 b 114 r
035 # 051 3 067 C 083 S 099 c 115 s
036 $ 052 4 068 D 084 T 100 d 116 t
037 % 053 5 069 E 085 U 101 e 117 u
038 & 054 6 070 F 086 V 102 f 118 v
039 ' 055 7 071 G 087 W 103 g 119 w
040 ( 056 8 072 H 088 X 104 h 120 x
041 ) 057 9 073 I 089 Y 105 i 121 y
042 * 058 : 074 J 090 Z 106 j 122 z
043 + 059 ; 075 K 091 [ 107 k 123 {
044 , 060 < 076 L 092 \ 108 l 124 |
045 - 061 = 077 M 093 ] 109 m 125 }
046 . 062 > 078 N 094 ^ 110 n 126 ~
047 / 063 ? 079 O 095 _ 111 o
There are other characters in the set (with the numbers 0 - 31 and
127), but they can do bad stuff to Usenet readers, so PLEASE DON'T
USE THEM in your pictures (except characters 10 and or 13 which
are used to insert a new-line by a variety of Operating Systems).
----
Then, charset from 128->255 are not ASCII chars.
Hope this help you.
Horroroso.
Related ASCII art in the Gallery
Explore these categories from our collection of 11,000+ artworks:
Make your own ASCII art
Turn images, text or 3D into ASCII, or draw your own – right in your browser.
About this thread.
These messages were posted publicly to the newsgroup
alt.ascii-art
in 2006 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked.
The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can.
Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.
Report this message
Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.