serverul Posted January 31, 2010 Share Posted January 31, 2010 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 More sharing options...
0 fhpuqrgrpgvirzhpujbj Posted January 31, 2010 Share Posted January 31, 2010 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 More sharing options...
0 serverul Posted January 31, 2010 Author Share Posted January 31, 2010 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 More sharing options...
0 fhpuqrgrpgvirzhpujbj Posted January 31, 2010 Share Posted January 31, 2010 The way I understand it is: true xor false = true true xor true = false false xor false = false Link to comment Share on other sites More sharing options...
0 Eric Veteran Posted January 31, 2010 Veteran Share Posted January 31, 2010 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 More sharing options...
0 serverul Posted January 31, 2010 Author Share Posted January 31, 2010 Thank you :) That answered the question. Link to comment Share on other sites More sharing options...
0 Eric Veteran Posted January 31, 2010 Veteran Share Posted January 31, 2010 Thank you :) That answered the question. You're welcome... It threw me off when I first saw it, too. :) "What the heck is that?!" Link to comment Share on other sites More sharing options...
0 hdood Posted January 31, 2010 Share Posted January 31, 2010 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 More sharing options...
0 serverul Posted February 1, 2010 Author Share Posted February 1, 2010 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 More sharing options...
Question
serverul
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:
Link to comment
Share on other sites
8 answers to this question
Recommended Posts