c ++ caret ^ Vs.指针*? [英] c++ caret^ Vs. Pointer*?
本文介绍了c ++ caret ^ Vs.指针*?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
反正,我已经看到使用插入符号,但我不
std :: string * st1;
到
String :: string ^ st2;
$ b
谢谢!
解决方案
插入符号特定于 C ++ / CLI ,Microsoft的.NET版本C ++,其中托管的等效指针。
它实际上不是标准C ++的一部分,所以除非你真的要使用.NET,否则不要使用。
I've programming for a long time in C and in C#, I thought moving to C++ would be smooth...
anyway, I've seen the use of caret but I don't understand the meaning of it.
what's the different between:
std::string *st1;
to
String::string ^st2;
Thanks!
解决方案
The caret is specific to C++/CLI, Microsoft's .NET version of C++, where it is the managed equivalent of a pointer.
It is not actually part of standard C++, so unless you truly mean to use .NET, don't use it.
这篇关于c ++ caret ^ Vs.指针*?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文