I am doing some validation of the arguments passed by command line in C++ and am having some difficulties.
I am doing like so
./a.exe inputfile.txt outputfile.txt 16 flush_left
And I am trying to do the validation like so
if(argv[4] == "flush_left" || argv[4] == "flush_justify" || argv[4] == "flush_right"){
And its not working out as planned. Though I am not seeing why this won't work. From everything I've read and seen that should be just fine