onkar wrote:
A small example please .....
getopt() is a not part of the standard C or C++ libraries
and is off-topic here. It is a common UNIX function to
retrieve command line arguments and part of the POSIX
standard I believe. You'll have to look it up on whatever
machine you are working with.