Does anyone know how to output special characters in C++ (to the console)? For example, ♠ ♥ ♦ ♣ (the four card suit symbols) . I am hoping for a very simple way to do this. If it helps, my IDE is NetBeans 7.0.1/7.1 with Cygwin.
...so I'm not really sure what's going on. Any help is still much appreciated though, so anyone who knows how to fix this, please help. Just FYI, my OS is Windows, which I think makes a difference.
#include <iostream>
usingnamespace std;
int main ()
{
char heart = 3; //get yourself an IBM ASCII chart for them all
cout << heart << endl;//make sure it has the heart on it, because if it
system("pause"); //doesn't, it isn't accurate
}
I'd reccomend using google images to get a chart. MAKE SURE #3 is a heart, or it isn't accurate
I really appreciate the help and links, but I cannot seem to figure it out. I would really appreciate it if someone could give a specific example so I can see how to do this. Thanks!
Well, I'm using the Allegro graphics library now, so that is probably just going to work better than anything else. If anybody knows how to do it through the console, please feel free to tell me. Thanks for all the help!