This application does nothing... getchar() is meant to grab input from stdin, which is the user input by default, yet you don't ask the user for input (I guess you can write it on the screen it in if you knew to do it). Additionally, you try to read the user input until EOF, that doesn't make sense, since stdin not a file, so you'll end up stuck in that infinite loop.
See this example:
http://www.cplusplus.com/reference/clibrary/cstdio/getchar/[
^]