Hi all

I had been working on a project and there is a need for me to accept user inputed parameters from the OS shell

like the kind we give:

ls -a
or
dir /a

where -a and /a are parameter,

I want to basically accept a string from the os which the user give along with my
softwares executable address
ie:
softwarename <parameter as a string>

hope you have put my idea well:
Please help.
Its urgent.

Declare main as follows:

int main(int argc,char** argv)
{
  ...
}

argc is the number of arguments, argv is an array with the arguments. The first argument is always the command line that was used to execute the program (without parameters), the rest are the actual parameters.