Doesn't anyone know how to write a simple test to figure out something that they don't quite understand?
#include <iostream>
using namespace std;
int main(int ac, char *av[])
{
int i;
cout << "Arg count = " << ac << endl;
for (i=0; i<ac; i++)
{
cout << "param " << i << " " << av[i] << endl;
}
return 0;
}
Learn to write these test programs. It will save you hours of pulling your hair out and waiting for someone to answer forum questions.