【 以下文字转载自 CProgramming 讨论区 】
发信人: dkutou (dkutou), 信区: CProgramming
标 题: 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 π;
}
--
FROM 157.230.227.*