I am trying to write a program which uses command line arguements and options. The part I am have trouble with is arranging all the different combinations. For example the options are as follows: -c, -a, -t, -p, -cp, -ca, -ct, -ctp, -tca, -tcap, and etc... for every possible combination. Or you can have the options seperated like -c -a -t, etc. My problem is this. How should I write the code so that when an option is chosen such as -cta, it wouldnt matter if the user put in that of -atc. What I am thinking is that I should convert the characters to the hex or decimal format and the sum of them would be the same no matter what combination..but how would I do that? Or should I do it someother way? Please help... Thanks in advance!