The way you create an array at line 9, the size needs to be known at compile time. If you're going to let the user enter the size, you'll need to dynamically allocate the array with new and deallocate the memory later with a corresponding delete.
Thanks for reading my topic and show me my correct :) but i not understand at all. I think i didn't get the main key to solve this problem. Can you correct me one more time? It's great if we have some code.