I need to write a program where i need to do the following:
"1) Prompt for and then accept an exposure time.
2) Prompt for and then accept an aperture.
3) If the aperture is not one of the acceptable aperture values then an error is reported and the program exits.
4) The exposure time and aperture is then printed out with a suitable heading."
This is all easy except the values for aperture are f1.2, f2 etc i dont know if that is a string or int or double or watever. some one told me i must use strcmp but i dont know how.... plz help
Thanks