/correct_cpp_show_args

Correct C++ chapter 'show args'

Primary LanguageQMakeGNU General Public License v3.0GPL-3.0

correct_cpp_show_args

Branch Travis CI Codecov
master Build Status codecov.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_args Output Exit status
./show_args show_args (with newline) 0
./show_args hello show_args hello (with newline) 0
./show_args hello world show_args hello world (with newline) 0

External links