这个问题在这里已经有了答案:
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/