Agony5757/mahjong

请问linux上要怎么make带中文字符的程序呢?

Closed this issue · 2 comments

它会报类似这样的错:
error: stray ‘\346’ in program
22 | p1���, p1河,
error: expected unqualified-id before ‘:’ token
47 | case Action::荣和:
| ^

I think you should use GBK encoding.

它会报类似这样的错: error: stray ‘\346’ in program 22 | p1���, p1河, error: expected unqualified-id before ‘:’ token 47 | case Action::荣和: |

用clang(推荐),或者用我最近的Remove-Unicode-Character分支(更新不一定及时)