I can write code like this:
const char * a = "你好";
cout<<a;
But when write like this:
char a[] = {'你','好'};
cout<<a;
It output garbled codes like this:
I thought the Chinese Character are stored in wchar_t,
so how const char * contain Chinese Character?

Aucun commentaire:
Enregistrer un commentaire