Ah, sorry, I just re-wrote this twice to try and make it coherent.
I just want to see if 'a' and 'z' were used when calling the program, and I was wondering if I could search for two separate characters in the same array.
Example:
Code:
for ( int j = 0; j < argc; j++ )
{
if ( argv[j] == 'A' && argv[j] == 'Z' )
func( argv[j+1], argv[j+1] );
else if ( argv[j] == 'A' && argv[j] != 'Z' )
{
cout << endl << "You must specify some extra thing" << endl;
help();
}
}
I know the above won't work, but I'm just trying to show what I'm asking