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

Code:
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
Code:
int *myPtr;

cout....
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.

Code:
int size;
int *myPtr;

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

myPtr = &size;