I am new to C programming, though I do know Java (more or less).
I am not understanding how EOF works, and due to this, am having constant trouble with every problem that uses a condition such as "while (c != EOF) {". Since I am not uploading a file to read from, but am rather a user typing input, how do I trigger EOF when I am finished typing my test text/input? I have read that the command "control+D" for a Mac should terminate something (what exactly?), but that ends up freezing Eclipse on my laptop.
What to do about all this?
Thanks so much!