The sample code shows how to use the getopt() function to parse the command-line options in a C or C++ program. Options may have no argument at all, or have one or more arguments.
Log in to post a comment.