I tried pointers and reference(&) but when I try to get the info(I am only reading from memory) computer \"beeps\" and program terminates.
NO problem when assigning a pointe
You can't. Modern OSes use virtual mode and memory protection which don't permit this. To access all physical RAM, you'll most likely need to write your own OS or a kernel driver for an existing OS.