ctm@peora.ccur.com (Cuong Tuan Ma) (07/06/89)
Hello, I'm writing a graphic program (playing card game) using TurboC 2.0, but I don't know how to get these little symbols: heart, diamond, club, and spade shapes. I couldn't find them even in ASCII table or <graphics.h>, <ctype.h> packages. I didn't see them in MSDOS page code table neither. Do I need to create my own symbols to print out those playing cards (I'm afraid that It could be messy). Do you have any suggestion? I'll appreciate all your help. My email address : peora!ctm
ctm@peora.ccur.com (Cuong Tuan Ma) (07/07/89)
Hello, I'm writing a graphic game program (playing card game) using TurboC 2.0, but I could not find these little symbols: heart, diamond, club, and spade in order to print out on screen. I didn't see them in ASCII table (neither "graphics.h" nor "ctype.h" libraries), and they are not even in MSDOS pagecode table (USA, Portugeese,Canada...). Do I need to create them myself (through bitmap 8x8 square)? I know it would be messy! Do you have any suggestion? I'll appreciate all your help. My email address: peora!ctm
bobmon@iuvax.cs.indiana.edu (RAMontante) (07/07/89)
The simple graphics symbols you're referring to are just the way the CGA
graphics adapter displays the "nonprinting" ASCII characters --- that
is, values less than 32 or greater than 127 (decimal). (The graphics
symbols assume that you aren't using any ANSI driver.)
You can see what your system will do by writing a simple program that
just displays each value:
#include <stdio.h>
int main(void)
{
int i;
for (i = 0; i <= 255; i++)
printf("value %3d >>%c<<\n", i, i);
return 0;
}
snuzs@trsvax.UUCP (07/10/89)
They are in the ASCII table. Specifically: Heart - 03 Diamond - 04 Club - 05 Spade - 06 ****************************************************************************** Scott Parrish Domain: snuzs@trsvax.Tandy.COM Tandy Electronics UUCP: ...!texbell!letni!trsvax!snuzs Fort Worth, Texas or: ...!decvax!microsoft!trsvax!snuzs ****************************************************************************** DISCLAIMER: Since Tandy Corporation and Radio Shack won't be responsible for what I say, I guess I'll have to be. ******************************************************************************