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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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