This program returns false on the if check. Debug mode shows argv[1] to be "-c" and a cout of argv[1] will display -c as well but the dependent code never executes.
Using;
if (argv[1] == '-c')
(single quotes instead) gives me the compiler errors:
error C2446: '==' : no conversion from 'int' to 'char *'
error C2040: '==' : 'char *' differs in levels of indirection from 'int'
It's not a crippling error, but I don't understand it and can only guess as to it's cause. I'd appreciate it if someone could explain away some of my ignorance.