为什么"阵"标记为在Visual-C保留字++? [英] Why is "array" marked as a reserved word in Visual-C++?

查看:197
本文介绍了为什么"阵"标记为在Visual-C保留字++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio的语法高亮颜色这个词的蓝色,仿佛它是一个关键字或保留字。我试着在网上搜索,但单词阵列抛出了搜索,我得到的大多是解释一个数组是哪些页面。它使用的是什么?

Visual Studio syntax highlighting colors this word blue as if it were a keyword or reserved word. I tried searching online for it but the word "array" throws the search off, I get mostly pages explaining what an array is. What is it used for?

推荐答案

这不是一个保留字。微软的 C ++ / CLI 的定义的中的 =http://msdn.microsoft.com/en-us/library/d87eee3k(VS.85)的.aspx> CLI命名空间和Visual Studio的语法高亮将把它作为保留字。这种用法会被认为是供应商扩展,而不是任何国际C或C ++标准的一部分。

It's not a reserved word under ISO standards. Microsoft's C++/CLI defines array in the cli namespace, and Visual Studio's syntax highlighting will treat it as a reserved word. This usage would be considered a vendor extension and not a part of any international C or C++ standard.

ISO C99 关键词:


auto        enum        restrict    unsigned
break       extern      return      void
case        float       short       volatile
char        for         signed      while
const       goto        sizeof      _Bool
continue    if          static      _Complex
default     inline      struct      _Imaginary
do          int         switch
double      long        typedef
else        register    union

ISO C ++ 98关键词:

ISO C++98 Keywords:


and         double          not                 this 
and_eq      dynamic_cast    not_eq              throw 
asm         else            operator            true 
auto        enum            or                  try 
bitand      explicit        or_eq               typedef 
bitor       export          private             typeid 
bool        extern          protected           typename 
break       false           public              union 
case        float           register            unsigned 
catch       for             reinterpret_cast    using 
char        friend          return              virtual 
class       goto            short               void 
compl       if              signed              volatile 
const       inline          sizeof              wchar_t 
const_cast  int             static              while 
continue    long            static_cast         xor 
default     mutable         struct              xor_eq
delete      namespace       switch     
do          new             template

这篇关于为什么"阵"标记为在Visual-C保留字++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆