• 0

what is: ^ operator in vs2008 c++


Question

Hello,

can anyone please enlighten me what the ^ operator might be in the following context?

because it certainly cannot be the XOR c++ operator.

thank you very much :rolleyes:

int main(array<System::String ^> ^args)

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

Hello,

can anyone please enlighten me what the ^ operator might be in the following context?

because it certainly cannot be the XOR c++ operator.

thank you very much :rolleyes:

int main(array<System::String ^> ^args)

It is XOR.

Link to comment
Share on other sites

  • 0

well I'm defining a new array of strings named "args" what is the meaning of XOR in the context?

also what is the meaning of ^ here?

System::String ^

my understanding of c++ says it should be just

System::String

thanks for the quick answer.

Link to comment
Share on other sites

  • 0

well I'm defining a new array of strings named "args" what is the meaning of XOR in the context?

also what is the meaning of ^ here?

System::String ^

my understanding of c++ says it should be just

System::String

thanks for the quick answer.

That's the "reference" symbol for C++ .NET classes. See the "Handles" section here: http://en.wikipedia.org/wiki/C%2B%2B_.NET

Link to comment
Share on other sites

  • 0

Like others have hinted at, it's worth keeping in mind that this is not C++.

It is C++/CLI, which is a different (managed) language, and if you are starting from scratch, you should think very carefully about using it. C# is almost always a better choice. C++/CLI is somewhat useful for transitioning older native code, but not much else. Even in those cases, you might be better off using C# and calling the native code via interop.

My advice would be to run at the first sight of it.

Link to comment
Share on other sites

  • 0

thx for the advice :) you're right about it hdood :)

I was very curios what the ... MS invented there, but now that I know I wont be using it any time soon.

I'm not the biggest fan on .NET but if I'll use it it'll be with C#.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.