argv with /? returns value /e

What I'm doing is writing a function to see if the user asked for help
command /?

When I type command 1 2 3 /?
or command /? 1 2 3
output is:

command
1
2
3
/e
Why is /? returned as /e ?


#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
for (int i=0; i <argc; i++)
{
cout << argv[i] << endl;
}
return(0);
}
Last edited on
Topic archived. No new replies allowed.