C++ (int getopt(argc, (char **)argv, optstring) : <p>I'm beginner in C++ and using ubuntu 12. I'm having problem in using    the getopt function particularly matching the command line arguments    (int main(int argc, char *argv[]) with optstr in getopt. can anyone    explain what is the format of command line arguments which can be    matched in getopt function.</p>
