^做什么? [英] What does the ^ do?
本文介绍了^做什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚接触C ++程序设计,我正在经历一些我发现的例子。因为我是一个体面的Java程序员,我取得了良好的进展(至少从我的角度:D)。
I'm new to C++ programming and am going through some examples that I found a while back. Since I am a decent Java programmer, I'm making good progress (at least from my perspective :D).
现在我遇到了一些我不能想出的东西它的作用:
Now I've come across something I cannot figure out what it does:
Threading::Thread ^ th = Threading::Thread::CurrentThread;
Net::IPEndPoint^ hostEp;
^
的目的是什么?并且在两行中使用之间有区别我只知道这是XOR运算符。
What is the purpose of the ^
? And is there a difference between the useage in the two lines I've only known this to be the XOR Operator.
提前感谢
推荐答案
此代码不是C ++,它是 C ++ / CLI 。 ^
是表示指向受管对象实例的指针的扩展。
This code is not C++, it is C++/CLI. ^
is an extension that denotes a pointer to a managed object instance.
这篇关于^做什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文