Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Shadow pointer member variable
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <iostream> class MyClass { public: MyClass() : m_pVar(nullptr) { } void Run() { std::cout << "m_pVar= " << m_pVar<< std::endl; int* m_pVar = static_cast<int*>(malloc(4)); } private: int* m_pVar; }; int main() { MyClass m; m.Run(); m.Run(); }
run
|
edit
|
history
|
help
0
Copy initialization: overload resolution issue
Struct packing
복소수 클래스 생성하기
MSVC14 <exception> header
VS struct name enumerate
Printf %px test
test
Increment pointer to struct
My Window
Rounding in C++