How can i view ASCII chars in winXP?

Started by
2 comments, last by dangerduo 21 years, 1 month ago
Hi, I have to create a game for my data structure class as a final project. Well, i decided to use some ASCII to do the drawing, I have to draw a grid, so i decided to use decimal 125, i believe is a bar..? Well, anyway, when i write a short loop program to display the ASCII characters, it is weird. It is not what i exepected. The characters are in some other characters which i can''t figure out what it is. Is there something wrong with my system? Or do I have to config my XP in order to view ASCII char correctly? Thank you.
Advertisement
there the same for me, im on xp pro

Easy way of programming: Code, Graphics, Swearing....font>
Easy way of programming: Coding, Debugging, Swearing.
Google / Game Tutorials / GameDev.Net / My Project server. Check it out.
Project: N/A / Percent Complete: 0% / Due Date: N/A
Show us some code.
This works:


  #include <stdio.h>void main() {    char cAscii = 124; //124 == |     125 == }    printf("The ascii value is %c\n",cAscii);}/*OUTPUTThe ascii value is |Press any key to continue*/  


[edited by - kordova on March 4, 2003 8:59:34 PM]
you might have to change the font... some fonts do not use the same upper 128 characters that you would expect.
Evillive2

This topic is closed to new replies.

Advertisement