The following shows ♠♣♥♦ on windows xp, will it for all systems??
#include <stdio.h>
int main(int argc, char *argv[])
{
for (int i = 3; i <= 6; ++i)
printf("%c", (char)i);
getchar();
return 0;
}
The four suits in playing cards, clubs, diamonds, hearts, and spades, collectively represent the four elements (wind, fire, water, and earth), the seasons, and cardinal directions. They represent the struggle of opposing forces for victory in life.
Insert | Symbols | Symbol and look for the playing card symbols. The quick way is to choose a symbol font then type 2660 into the character code box.
Nope. Character encoding is a very platform dependent, in my experience.
Consider, in ASCII those characters don't even exist. And I have no clue where they are in Unicode. And where ever they are, you would then be depending on how your platform outputs Unicode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With