>  Q&A  >  본문

C++中的"%:"和"%:%:"如何使用?

可能这是C++11的内容,但是不明白用法 像G++中可以用""代替"}","<:"代替"[",":>"代替"]" 经过测试,微软的编译器中并未实现这个语法 "%:"和"%:%:"的出处是 http://www.externsoft.ch/media/swf/cpp11-iso.html#preprocessing_op_or_punc

迷茫迷茫2713일 전1634

모든 응답(1)나는 대답할 것이다

  • PHP中文网

    PHP中文网2017-04-17 11:12:22

    咱们使用的键盘都是标准的美式键盘。但是,在一些国家,很多键盘布局中没有 {,所以,可以使用 <% 代替 {

    §6.4.6-3 (C99)

    In all aspects of the language, the six tokens

    <: :> %: %:%:

    behave, respectively, the same as the six tokens

    [ ] { } # ##

    所以:

    • %: 就是 #
    • %:%: 就是 ##

    下载 ISOIEC 9899-201x-C语言标准规范.pdf

    회신하다
    0
  • 취소회신하다