c++ - Does this program show the four card suits (♠♣♥♦) on all standard-ish systems? -


the following shows ♠♣♥♦ on windows xp, systems??

#include <stdio.h> int main(int argc, char *argv[]) {     (int = 3; <= 6; ++i)         printf("%c", (char)i);      getchar();     return 0; } 

nope. character encoding platform dependent, in experience.

consider, in ascii characters don't exist. , have no clue in unicode. , ever are, depending on how platform outputs unicode.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -