Page 1 of 1

Microsoft Visual Studio erkennt keine Sonderzeichen

Posted: 02 Apr 2025, 03:27
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