Unsolved How to print all Chinese char?
-
for(const ushort *u=0x4E00; u <= 0x9FA5; u++){
qDebug() << QString::fromUtf16(u);
}error: cannot initialize a variable of type 'const ushort *' (aka 'const unsigned short *') with an rvalue of type 'int'
-
@sonichy 1. Why do you declare u as pointer?
2. Why do you declare u as const (you can't increment const)?for(ushort u=0x4E00; u <= 0x9FA5; u++){ qDebug() << QString::fromUtf16(&u); }