Microsoft Visual Studio erkennt keine SonderzeichenC++

Programme in C++. Entwicklerforum
Anonymous
 Microsoft Visual Studio erkennt keine Sonderzeichen

Post by Anonymous »

Ich versuche, Anzugszeichen auf einer Windows -Konsole anzuzeigen, aber bisher hat nichts, was ich ausprobiert habe, funktioniert. < /p>

Code: Select all

#include
using namespace std;

int main() {
//define the unicode for four suits, for display purpose
const char SPADE[] = "\x03";
const char CLUB[] = "\x04";
const char HEART[] = "\x05";
const char DIAMOND[] = "\x06";
cout 
, aber es gibt nichts aus. Dann habe ich es versucht: < /p>
// the following works for the Unix system, including Mac OS
const char SPADE[] = "\u2660";
const char CLUB[] = "\u2663";
const char HEART[] = "\u2665";
const char DIAMOND[] = "\u2666";
cout 
und It Output "?". Ich habe sogar einfach versucht: < /p>
cout

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post