Could someone explain to me in english what this piece of code does.
Also if you could show equivilant code not using dynamic allocation.

int *myPtr = new int;
The above seems to be working in my program.

I previously tried something similar to this and the app kept crashing
int *myPtr;

cin>> *( myPtr );  //Store input into the value myPtr points to
I am writing a simple sorting program that uses pointer notation for everything. Meaning I do not want to do this.

int size;
int *myPtr;

cout<<"Size : ";
cin>> size;

myPtr = &size;