Home > Back-end >  Questions about C print special characters
Questions about C print special characters

Time:10-12

Masters, I am using the c + + painting abital board encountered a problem
As shown in figure

I want to print the first character, but typing is empty, only the cursor flashing again,

CodePudding user response:

Would be ch [16]={... };
Wcout & lt;
Try this way?

CodePudding user response:

 wcout. Imbue (locale (" CHS ")); 
Wcout<.

CodePudding user response:

reference 1st floor jianwen0529 response:
would be ch [16]={... };
Wcout & lt;
Try this way?

Or not, I groped for a long time, it should be the symbols in asc2 code table exceeded 128, so can't show,

CodePudding user response:

reference isochan reply: 3/f
Quote: refer to 1st floor jianwen0529 response:

Would be ch [16]={... };
Wcout & lt;
Try this way?

Or not, I groped for a long time, it should be the symbols in asc2 code table exceeded 128, so can't show,


ASCII is not asc2, ii is information exchange,

CodePudding user response:

Tabs you use unsigned char, extended ASCII have tabs
With extended ASCII

https://img-blog.csdnimg.cn/20200226201910969.png? X - oss - process=image/watermark, type_ZmFuZ3poZW5naGVpdGk, shadow_10, text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L1BJUEUxMTE=, size_16, color_FFFFFF, t_70
  • Related