• Naively parsing command line arguments.
  • Appendix B talks about a function that can help parse arguments.
  • The author of your book provides a set of header files which give some utilities to parse command line arguments.
  • Boost has a library for doing this. Boost::program_options.
  • There are other libraries as well.