I’d like to write a simple interactive command line program in C or Objective-C. Something that prompts the user for input and then acts on that input, then prompts the user for more input. I’ve googled “interactive command line application” and several variations on that theme but am not coming up with any simple examples of what I’m looking for.
This seems like an absolutely elementary, fundamental programming example, like a step after “hello world”. Can anyone point me to an example of such a program, or tell me what I should be searching for?
Xcode 4 – Foundation Command Line Tool
main.mfileNote: In case the command line interface does not appear, hit the second button:
Now you can interact with the command line tool.