kgowen@cie.uoregon.edu (Kevin Gowen) (05/16/91)
OK, here is what should be a simple problem, but it has me stumped:
I'm trying to display an ascii chart on the screen:
for (i=0; i<=255; i++)
{
printf("%3d %3x %c", i, i, char(i));
printf("\n");
}
This works fine for *most* characters. However, decimal 10 is the newline
character so when i=10 I am trying to print "\n" and all it does is, of
course, is put the cursor on a new line. I don't get the ascii representation
of 10, which is a rectangular box with a circle inside. How do I tell the
computer that I want to *see* the newline char, not the results of a newline?
There must be something real obvious that I'm missing. You can post replies
here, as I read this group, or email is fine, too. Thanks in advance.
-kevin
kgowen@cie.uoregon.edu