tot*_*oto 3 c++ syntax c++-cli
我已经下载了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;
Run Code Online (Sandbox Code Playgroud)
2个问题:ref关键字是什么?那个标志是什么^?这是做什么的
保护:
virtual void
Execute
(
Phx::Unit ^ unit
) override;
Run Code Online (Sandbox Code Playgroud)
};
override也是一个C++关键字?它在我的Visual Studio中就这样着色了.我真的很想玩这个框架,但是这个先进的C++现在确实是一个障碍.谢谢.
它是C++/CLI - 编写为在.Net框架下作为托管代码运行的代码,而不是常规C++代码.