Hi, I'm a bit of a newbie, I am doing a project for school and it needs to accept command line arguments. I know that I need to use argc and argv the problem is I need to be able to use anything from 1 switch to 3 switches, example 'finds -e bal input.cpp' or 'finds -e -g -f bal input.cpp' or 'finds -egf bal input.cpp' any of them are valid. The problem is how do I know which values in the array argv are switches, should I use a for loop searching for - as value 0, or what.
Thanks for your help in advance. Sorry about the burbling.