Give a main function written in C++. Your main function is to see if it has been passed exactly one command line argument (you are to check that there is exactly one), and it has the value
–verbose
The function will set the local integer variable foundVerbose to 1 if there is exactly one argument and that argument is -verbose, otherwise foundVerbose is set to 0. The variable should be local to the function.
I am reviewing for an exam and came across this question and don't have a clue how to start.