.net - 'System::String^' 在 C++ 中是什么意思?

标签 .net visual-c++ c++-cli language-features

这个问题在这里已经有了答案:




11 年前关闭。




Possible Duplicate:
What does the caret mean in C++/CLI?


System::String是一个类。附加插入符号是什么意思?
System::String^ productString = L"";

有没有人见过这个?我在 Stroustrop 找不到任何关于这个的东西。

最佳答案

这是微软的 C++/CLI . ^运算符用于访问 .NET 引用类型。这意味着某种“句柄”,语法是 ClassName^而不是 ClassName* .

关于.net - 'System::String^' 在 C++ 中是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4135559/

相关文章:

python - 如何捕获 Windows 计算机上的所有用户事件 [不是任何特定于应用程序]?

Linux 上的 .NET,~/文件夹错误?

c# - Marshal::GetFunctionPointerForDelegate:我应该发布它的结果吗?

.net - 为什么 DialogResult::Yes 需要一个::?

visual-c++ - 根据文件名有条件地从 VisualStudio 2013 C++ 项目中排除文件

c++ - ^ 在 bool GetDeviceInformation(String ^ port, LibCECConfiguration ^configuration, uint32_t timeoutMs) 中是什么意思

.net - 创建将字符串转换为可为空的数字的通用方法

c# - 对于 float 和 double,为什么它对于负数和正数是不对称的?

c++ - '? ?' is getting converted into ' ^' 在 Visual C++ 中。为什么会发生,出路在哪里?

c++ - 将 VC++ 6.0 转换为 VC++ 2005