Form style interface? Possible with standard libraries?
I am learning C in a GE college class, and so far all we have done is standard line style input where only one variable can be assigned at a time. This is useful for beginning programming exercises, but I recently discovered that my calculator can also be programmed with C using standard libraries (and a few special ones for fooling with the display and accepting input from its function keys).
I would like to be able to present an interface where the user is given a multi-field form to fill out, from which any of several fields can be entered. When the user is done they can press enter (or 'exe' in my case) and the program will then assign the variables correctly and continue with evaluation. This program should work basically the same at a shell prompt as it should on my calculator. So ignore the fact that I'm not working with the standard shell, as I can probably adapt your answers successfully to my intended environment
An example of how I would like the program to act would look like this on the shell
enter your variables:
Molarity i: *Note, these variable should be able to be
Volume i : * entered in any order, using the arrow
Molarity f: * keys to select the field and hitting
Volume f : * enter when done.
Your missing variable's value is : *output*evaluated*by*program*
Does anybody have an idea of how I can do this using standard libraries?