Skip to content

richelbilderbeek/correct_cpp_show_args

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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