Comparing char array for two strings
I have a command line structure, and I was wondering how I could compare a char array for two separate characters.
if ( argv[x] == 'A' && argv[x] == 'Z' )
I've tested that (not that \exact\ code), and it doesn't work. Well, if it does, I'm using it wrong.
I want to pass two command line options onto another function, but can't figure out a way to check to see if one is accompanying the other so that I can send them together, because alone they won't work.
So, how would I go about doing that? I've set up about a million for statements, and realized they were all destined for uselessness and I canít think of anything else to do.