I gtg sleep, but I'll chek it tomorrow. I've read it very fast and the first error is is weird... first
int antal,arr,tal,position=0,temp,j,nr=0;; why 2 ; ?
arr = new int[antal]; //ERROR 1
You should write something like
int arr * = null; or somthing like this for the syntax to declare a pointer and then allocate memory with: arr = new int[antal];
In your while looping, try to use eof ->
http://www.cplusplus.com/reference/iost ... s/eof.html
I haven't tried to compile anything... as I said, tomorrow I'll check it.
Give a man a fish, you feed him for one day.
Learn a man to fish, you feed him for life.