I need to write a program that will simulate moving player 'N' on the map. It must occupy the position [x][y] on 2-dimensional vector from ' ' elements. If I press 'a' it should occupy [x][y-1] position, 'w' - it shouls occupy [x-1][y] position and etc for 's' and 'd'.
With respect to you, I don't think that way of asking questions be good. Imp you need to write your primary code and then when you face to problems ask for solve them. This way can strongly help you improve your programming skills.