Changes

Jump to: navigation, search

OOP344 - 20101

30 bytes added, 12:10, 17 October 2009
Dynamic Memory allocation
==== Dynamic Memory allocation ====
To do Dynamic Memory Allocation you need:
# Pointer of the type of the memory we are alocating allocating. Ex: int* p;
# If the pointer is already pointing at another already allocated memory, deallocate it.
# Allocate memory and set the pointer to its address.
# Use the memory.....
# When you are done, deallocate it.Ex: delete [] p;
===To Do===
1
edit

Navigation menu