Mais conteúdo relacionado
Mais de Amazon Web Services (12)
cpp-2013 #4 Memory management
- 5. Heap and stack
• What is stack variable
• What is heap variable
• How to work with them
- 6. How to work with heap variables
• Allocate memory ONLY in constructor
• Deallocate memory ONLY in destructor
• new[] and delete[]