Create memoryrand.cpp

example how to use pointers with memory...