Monday, March 31, 2008
Every keyCode is 229?!
I need to blog this. When I was debugging javascript, I found that no matter I press "A" or "X", the keyCode of it is 229. It turned out that I was typing using Microsoft PinYin. Although the mode is English instead of Chinese, it is Chinese input keyboard anyway. That's why the keyCode behaves strangly.
Sunday, March 2, 2008
Constant Pointers and Pointers to Constants
Difference between Reference and Pointer
Difference between Reference and Pointer in C++
- Reference should be initialized and pointer need not be.
- Reference can’t point to NULL and pointer can.
- Reference can’t be changed to some other objects it is once initialized but pointer can be.
- Pointer can be incremented or decremented and subjected to any pointer arithmetic operations, but reference can’t.
Subscribe to:
Posts (Atom)