經安全檢測,此網站為安全網站,請放心前往原始網址!

C++ Passing Pointer to Function (Howto) + C++ Pointer Manipulation - Stack Overflow

bar = foo, is invalid, as foo is an int and bar a pointer. The correct code is "bar = &foo" because as a pointer, bar can only store memory addresses not an int. Sorry for the comment answers. – Tomas Cokis Sep 26 '10 at 1:14

stackoverflow.com

網址安全性掃描由 google 提供