correctcppshow_args

March 2, 2018 ยท View on GitHub

BranchTravis CICodecov
masterBuild Statuscodecov.io

Correct C++ chapter 'Show CLI arguments'.

Goal

  • Display all command-line arguments using the STL

Prerequisites

Exercise

Write a command-line interface (CLI) program that displays all command-line arguments, seperated by spaces and followed by a newline.

Call to show_argsOutputExit status
./show_argsshow_args (with newline)0
./show_args helloshow_args hello (with newline)0
./show_args hello worldshow_args hello world (with newline)0