Thursday, July 30, 2009

How to insert the heart, clubs, diamond and spade shape in C programming?

the heart shape


the clubs shape


the diamond shape


the spade shape





hot to insert it in C programming language?? please help me......

How to insert the heart, clubs, diamond and spade shape in C programming?
Presumably you wish to output one of these symbols to standard output - in which case it cannot be done, as they are not ASCII characters.





If you are writing a graphic application (by which I mean something that draws for itself as opposed to just pushing chars to standard output) then the solution should be simple. Either draw them yourself with drawing commands (long winded), load them from a resource and draw them from that (neat), or find a font which contains them and use text drawing commands to draw them (neat, requires font).

pistil

No comments:

Post a Comment