I'm trying to write a program for practice. This program is supposed to collect input data (n, s, e, w for north, south, east, and west) and then display the co-ordinates like this: (0,0). Then when you press n, for example, it will display (0,1) and then save that data. Then press, say e for east and display (1,1). This is my code. But no matter what input character I type, it only displays (0,1) and then exits! What am I doing wrong?
I figured it out, actually. I was telling the compiler to end the line before it even got to the switch statement. If anyone is interested, here is my revised code.