a Movement doubt in an array
Hi, I would like to know if someone knows how can i move through an array by using the arrow keys, for example my array is
Code:
a{2, 3, 5, 64, 7, 34}
and the display is 2
them when the user press the right aroow key it automaticaly moves to the second element of the list (so I can modify it if I want) and it prints 3
right arrow key again and it prints 5, then, left arrow and it prints 3, etc
i have been told that I should use the ASCII code and getchar(), however i really have no Idea how to make it work.
thx