Visual c++ Object^ o 中的 '^' 是什么意思? 有关方面的资料吗 ?

来源:百度知道 编辑:UC知道 时间:2024/06/01 03:17:03
Visual c++

顶级符号,代表他是托管的。

-----------------------------

^ (Handle to Object on Managed Heap)
Declares a handle to an object on the managed heap.
声明一个指向托管堆的句柄。说白了就是声明托管对象,如果你要用.net框架里东东,C++语法就是这样:
String ^test=gcnew String("xxx");//gcnew => Garbage Collector New
MessageBox::Show(test);