I'm trying to use an if statement that runs if you have an argv called help, but it doesn't work.
This is, as far as I could tell, right, but it outputs 'What?' every time, regardless.Code:#include <iostream> using namespace std ; int main(int argc, char* argv[]) { if ( argc ) { if ( argc == "help" ) { cout << "You said " << argv[1] << " just then.\n" ; } else { cout << "What?\n" ; } } }