how to print extended ASCII codes in vc?

C

chjiangwh

hello,everybody
I want to print extended ASCII codes in a windows console app.
I want to print the chessboard in the console screen,using
printf("%c",219)
but it appears strange code.
Anybody can help?
thx.
 
V

Vladimir S. Oka

(e-mail address removed) opined:
hello,everybody
I want to print extended ASCII codes in a windows console app.
I want to print the chessboard in the console screen,using
printf("%c",219)
but it appears strange code.
Anybody can help?
thx.

There's nothing wrong in what you're doing. If you expected a different
glyph in the console, your problem is in the code page that it uses.
You can set that somewhere in Windows. I don't know, and you should
really ask in one of the M$ groups.
 
V

Vladimir S. Oka

(e-mail address removed) opined:
thx all the same.
I am sorry,maybe i post it in the wrong group.

Only partly, but you definitely did post this one in the wrong way.

Please quote context, otherwise it can be impossible to know what
you're talking about (and to whom). Had I not replied to your OP not
long ago, I wouldn't have a clue what you're on about. Read the link
in my sig.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top