Changed array to pointer

Changed char array to pointer (since we only needed 1 char)
Updated with a getchar() for windows