...

View Full Version : n00b question



nlyankees39
06-12-2007, 07:49 PM
I know this is a total n00b question, and I thought I knew what it meant, but apparently I don't. I was wondering if someone could tell me what it means when there is a ^ after something in C++. Here's an example:

Ticket^ Sensor::SetProperties(QVISensorParameters* sensorProps,
Ticket::TicketCallback^ callback)

Thanks for any help!

sage45
06-12-2007, 09:44 PM
The caret "^" is the bitwise XOR operator in C++...

http://www.cprogramming.com/tutorial/bitwise_operators.html
http://www.hal-pc.org/~clyndes/computer-arithmetic/bitwise.html

HTH,

-sage-

ralph l mayo
06-13-2007, 08:24 AM
Those aren't bitwise operators in this context, they're indicators that the variables in question are "handles," which are, to oversimplify a bit, garbage collected quasi-pointers. They work a lot like pointers in practice, ie. you dereference them with ->, but you create objects with 'gcnew' for 'new' and you don't delete them. They're not standard C++, but a Microsoft extension (see: CLI (http://en.wikipedia.org/wiki/C%2B%2B/CLI).) See this MSDN blog post (http://blogs.msdn.com/branbray/archive/2003/11/17/51016.aspx) for a primer.

ghell
06-18-2007, 08:00 PM
Yea this is only in microsoft's managed c++

blueterry
06-28-2007, 08:18 PM
its a xor bit operator that is going to mess around with the bits of the binary system 1 and o


like if there is a 1 and a 0 aligned the one will be place out and there will be put a zero

if it is a or statement than the 0 will be placed out and teh 1 will become the bit that is operated

and
or
xor


just different operarors:thumbsup:

ralph l mayo
06-28-2007, 09:51 PM
its a xor bit operator that is going to mess around with the bits of the binary system 1 and o


like if there is a 1 and a 0 aligned the one will be place out and there will be put a zero

if it is a or statement than the 0 will be placed out and teh 1 will become the bit that is operated

and
or
xor


just different operarors:thumbsup:
No, as ghell and I maintain they are not bitwise operators. What are bitwise ops supposed to do on a type name anyway?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum