Skip to Content
Learn
Code Challenge: C++ Functions
Introduction

introduction()

Instructions

1.

Write a function introduction() with no return value that has:

  • std::string parameter named first_name.
  • std::string parameter named last_name.

The function should print the last_name, followed by a comma, a space, first_name another space, and finally last_name again.

For example, introduction("James", "Bond"); should print the following:

Bond, James Bond
Folder Icon

Take this course for free

Already have an account?