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

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -