¡@

Home 

c++ Programming Glossary: optarg

Using getopt to parse program arguments in c++

http://stackoverflow.com/questions/2219562/using-getopt-to-parse-program-arguments-in-c

c getopt argc argv a b c EOF switch c case 'a' cout optarg endl break case 'b' cout optarg endl break case ' ' cerr.. switch c case 'a' cout optarg endl break case 'b' cout optarg endl break case ' ' cerr Missing option. endl exit 1 break.. I forgot parameterForA the parameterForA represented by optarg is returned as b and parameterForB is considered an option with..