Output unicode symbol π and ≈ in c++ win32 console application

前端 未结 3 515
南旧
南旧 2021-01-03 00:16

I am fairly new to programming, but it seems like the π(pi) symbol is not in the standard set of outputs that ASCII handles.

I am wondering

3条回答
  •  一个人的身影
    2021-01-03 00:20

    The Microsoft CRT is not very Unicode-savvy, so it may be necessary to bypass it and use WriteConsole() directly. I'm assuming you already compile for Unicode, else you need to explicitly use WriteConsoleW()

提交回复
热议问题