加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

关于我从未在C代码中看到的特殊运算符的一些问题

发布时间:2020-12-16 06:47:21 所属栏目:百科 来源:网络整理
导读:我已经下载了2008年6月的Phoenix SDK(编译器工具),当我正在阅读Hello示例的代码时,我真的感到迷茫. publicref class Hello{//--------------------------------------------------------------------------//// Description://// Class Variables.//// Remar
我已经下载了2008年6月的Phoenix SDK(编译器工具),当我正在阅读Hello示例的代码时,我真的感到迷茫.

public
ref class Hello
{
//--------------------------------------------------------------------------
//
// Description:
//
//    Class Variables.
//
// Remarks:
//
//    A normal compiler would have more flexible means for holding
//    on to all this information,but in our case it's simplest (if
//    somewhat inelegant) if we just keep references to all the
//    structures we'll need to access as classstatic variables.
//
//--------------------------------------------------------------------------

static Phx::ModuleUnit                 ^ module;
static Phx::Targets::Runtimes::Runtime ^ runtime;
static Phx::Targets::Architectures::Architecture       ^ architecture;
static Phx::Lifetime                   ^ lifetime;
static Phx::Types::Table               ^ typeTable;
static Phx::Symbols::Table                ^ symbolTable;
static Phx::Phases::PhaseConfiguration        ^ phaseConfiguration;

2个问题:ref关键字是什么?
那个标志是什么^?这是做什么的

保护:

virtual void
  Execute
  (
     Phx::Unit ^ unit
  ) override;

};

override也是一个C关键字?它在我的Visual Studio中就这样着色了.
我真的很想玩这个框架,但是这个先进的C现在确实是一个障碍.谢谢.

解决方法

它不是标准C,它是 C++/CLI.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读