View Single Post
Old 05-13-2004, 11:49 PM   #4 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
|= is not an XOR operator but an OR-Assignment operator.
^ is the XOR operator for bitwise manipulation.

Furthermore, I am not sure if your proggy still would work. You need to convert the individual characters to asci integer and then use the XOR for manipulation back and forth. That will work guaranteed. Obviously you have to convert the integers (wich are the ASCI numbers) back to asci characters and store it in a string variable.

Also make sure to convert m_seed to an integer first, if not already.
And when you don't need buffer anymore, make sure you free the memory with delete[]!
Observe the subscript ( [] ) operator! When you use new [...], delete with delete[ ] .
__________________
Valmont is offline   Reply With Quote