Exclusive OR encoding
^ is the operator for exclusive ORing.C++ does not have a built-in Exclusive-OR function, however.
Hashing
That'd get me element 51, not 50. If the array size was 50, this would've given me an access violation.To find element 50 of an array named "employees" you have to access it like this:
employees[50];
C & C++ use zero-based indices.
I'm sorry if someone noted this in some other post, I failed to find any. And I was really frustrated by this, never expected it, that I haven't continued reading the journal.