好像从gcc 10就开始了, 不用10.3
【 在 dkutou (dkutou) 的大作中提到: 】
: 标 题: GCC 10.3.0 支持utf8标识符了,直接能用中文了
: 发信站: 水木社区 (Sat Apr 10 20:03:00 2021), 站内
:
:
https://gcc.gnu.org/gcc-10/changes.html: Extended characters in identifiers may now be specified directly in the input encoding (UTF-8, by default),
: in addition to the UCN syntax (\uNNNN or \UNNNNNNNN) that is already supported:
: static const int π = 3;
: int get_na飗e_pi() {
: return π;
: }
:
: --
:
: ※ 来源:·水木社区 newsmth.net·[FROM: 157.230.227.*]
:
--
FROM 157.230.227.*