In a broader scope my problem is that I need to use input from the command line (as opposed to using cin) to determine the action of an if statement.
For example, if(operation == a). How can i set up the variable "operation" so that it gets assigned to an argument from the command line? Simply writing
operation = argv won't work, so how do you do it? or do i have the total wrong idea?
I've been scouring the web all night but being fairly new to C++ i'm sure i'm using an incorrect term or something and as of yet haven't been able to find a plainly written solution/explanation.